glx: Fix glXCreateWindow() when GLX_DIRECT_RENDERING is undefined
authorJon TURNEY <jon.turney@dronecode.org.uk>
Tue, 26 Feb 2013 15:47:44 +0000 (15:47 +0000)
committerAdam Jackson <ajax@redhat.com>
Wed, 27 Feb 2013 18:36:19 +0000 (13:36 -0500)
glXCreateWindow() and glXCreatePbuffer() always fail when built without
GLX_DIRECT_RENDERING defined since commit 48331047.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
src/glx/glx_pbuffer.c

index e4b2c86a08da222d55d8069086d51b2a3beaf391..f11305a41df014114e9152fc35e7a7126d7e55ab 100644 (file)
@@ -241,7 +241,7 @@ CreateDRIDrawable(Display *dpy, const struct glx_config * fbconfig,
                  XID drawable, XID glxdrawable,
                  const int *attrib_list, size_t num_attribs)
 {
-    return GL_FALSE;
+    return GL_TRUE;
 }
 
 static void