wined3d: Complain about users disabling GLSL.

This commit is contained in:
Henri Verbeet 2011-07-28 22:27:55 +02:00 committed by Alexandre Julliard
parent 2256a7e804
commit 64f71fda6d
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include "wined3d_private.h" #include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d); WINE_DEFAULT_DEBUG_CHANNEL(d3d);
WINE_DECLARE_DEBUG_CHANNEL(winediag);
struct wined3d_wndproc struct wined3d_wndproc
{ {
@ -238,6 +239,7 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL)
{ {
if (!strcmp(buffer,"disabled")) if (!strcmp(buffer,"disabled"))
{ {
ERR_(winediag)("The GLSL shader backend has been disabled. You get to keep all the pieces if it breaks.\n");
TRACE("Use of GL Shading Language disabled\n"); TRACE("Use of GL Shading Language disabled\n");
wined3d_settings.glslRequested = FALSE; wined3d_settings.glslRequested = FALSE;
} }