summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2017-11-09 16:57:31 -0500
committerAdam Jackson <[email protected]>2017-11-13 10:40:30 -0500
commit257edb5b9aedc9fc5d5c13eb2f48a0c11d15456f (patch)
tree8a78df14170686d9a4e7368b4030ba347bb3a272
parent033cfb17db85b38bc012d74f30f6c92cddf85216 (diff)
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: [email protected] Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Adam Jackson <[email protected]>
-rw-r--r--src/glx/dri3_glx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index fa048f990a9..a10306fe329 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