summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-02-04 08:42:30 -0700
committerBrian Paul <[email protected]>2009-02-04 16:33:25 -0700
commitc35a5aeb706d33b9c09b5a12bbbeae0f109885c9 (patch)
tree6f7cb66c309489900b2dd26ebf3f4838933ef0c7 /src/mesa/drivers
parentc06c74c0b84ddfebaf144ec64b305879f9ddc681 (diff)
mesa: make Xlib glXIsDirect() always return True
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 73fde865e34..3b004a3ee25 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1395,13 +1395,13 @@ Fake_glXChooseVisual( Display *dpy, int screen, int *list )
/**
* Init basic fields of a new fake_glx_context.
- * If the MESA_GLX_FORCE_DIRECT env var is set, the context will be marked as
- * a direct rendering context. Some apps won't run without this.
*/
static void
init_glx_context(struct fake_glx_context *glxCtx, Display *dpy)
{
- GLboolean direct = _mesa_getenv("MESA_GLX_FORCE_DIRECT") ? GL_TRUE : GL_FALSE;
+ /* Always return True. See if anyone's confused... */
+ GLboolean direct = GL_TRUE;
+
glxCtx->xmesaContext->direct = direct;
glxCtx->glxContext.isDirect = direct;
glxCtx->glxContext.currentDpy = dpy;