summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-11-09 16:57:31 -0500
committerEmil Velikov <emil.l.velikov@gmail.com>2017-11-17 19:24:29 +0000
commita240fd6d13c26bfd8e2da5ce75068f204a634089 (patch)
tree1122da2e762bf7b3efd598e06002088a2d6f7b7b
parent5743c8389337e3c79d8611587914040191f75966 (diff)
downloadmesa-a240fd6d13c26bfd8e2da5ce75068f204a634089.tar.gz
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@lists.freedesktop.org Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Adam Jackson <ajax@redhat.com> (cherry picked from commit 257edb5b9aedc9fc5d5c13eb2f48a0c11d15456f)
-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 b79fec7335c..b7cfd71a5a8 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -317,9 +317,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