From 992a79b2b42f078a87177dd3bf6c927e63d62eda Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 23 Jun 2009 00:16:52 +0100 Subject: [PATCH] Checking extension is enabled for direct rendering is wrong when we are indirect rendering... Signed-off-by: Jon TURNEY --- src/glx/x11/glxcmds.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c index 48e2e94..472f8b4 100644 --- a/src/glx/x11/glxcmds.c +++ b/src/glx/x11/glxcmds.c @@ -2096,8 +2096,7 @@ PUBLIC GLXPixmap glXCreateGLXPixmapWithConfigSGIX(Display *dpy, } psc = GetGLXScreenConfigs( dpy, fbconfig->screen ); - if ( (psc != NULL) - && __glXExtensionBitIsEnabled( psc, SGIX_fbconfig_bit ) ) { + if (psc != NULL) { opcode = __glXSetupForCommand(dpy); if (!opcode) { return None; @@ -2136,8 +2135,7 @@ PUBLIC GLXContext glXCreateContextWithConfigSGIX(Display *dpy, } psc = GetGLXScreenConfigs( dpy, fbconfig->screen ); - if ( (psc != NULL) - && __glXExtensionBitIsEnabled( psc, SGIX_fbconfig_bit ) ) { + if (psc != NULL) { gc = CreateContext( dpy, NULL, (__GLcontextModes *) config, shareList, allowDirect, None, False, renderType ); } @@ -2153,7 +2151,6 @@ PUBLIC GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX(Display *dpy, __GLXscreenConfigs *psc; if ( (GetGLXPrivScreenConfig( dpy, vis->screen, & priv, & psc ) != Success) - && __glXExtensionBitIsEnabled( psc, SGIX_fbconfig_bit ) && (psc->configs->fbconfigID != GLX_DONT_CARE) ) { return (GLXFBConfigSGIX) _gl_context_modes_find_visual( psc->configs, vis->visualid ); -- 1.6.3.2