Mesa (master): glx/dri3: Fix passing renderType into glXCreateContext
Adam Jackson
ajax at kemper.freedesktop.org
Mon Nov 13 15:57:32 UTC 2017
Module: Mesa
Branch: master
Commit: 257edb5b9aedc9fc5d5c13eb2f48a0c11d15456f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=257edb5b9aedc9fc5d5c13eb2f48a0c11d15456f
Author: Adam Jackson <ajax at redhat.com>
Date: Thu Nov 9 16:57:31 2017 -0500
glx/dri3: Fix passing renderType into glXCreateContext
Without this, trying to create a GLX_RGBA_FLOAT_TYPE_ARB context would
fail, because GLX_RGBA_TYPE would be a mismatch with the fbconfig.
Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
src/glx/dri3_glx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index fa048f990a..a10306fe32 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -324,9 +324,10 @@ dri3_create_context(struct glx_screen *base,
struct glx_context *shareList, int renderType)
{
unsigned int error;
+ uint32_t attribs[2] = { GLX_RENDER_TYPE, renderType };
return dri3_create_context_attribs(base, config_base, shareList,
- 0, NULL, &error);
+ 1, attribs, &error);
}
static void
More information about the mesa-commit
mailing list