[PATCH] Fix a bug for calling createContextAttribs.
junyan.he at linux.intel.com
junyan.he at linux.intel.com
Thu Sep 27 15:29:37 PDT 2012
From: Junyan He <junyan.he at linux.intel.com>
__glXDisp_CreateNewContext path will call the
__glXDRIscreenCreateContext with no attribs, and
cause api not inited and has a random value.
Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
glx/glxdri2.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index bce1bfa..e34c851 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -544,6 +544,8 @@ create_driver_context(__GLXDRIcontext * context,
ctx_attribs[num_ctx_attribs++] = reset;
}
#endif
+ } else {
+ api = __DRI_API_OPENGL;
}
context->driContext =
--
1.7.11.2
More information about the xorg-devel
mailing list