summaryrefslogtreecommitdiffstats
path: root/src/glx/dri_glx.c
diff options
context:
space:
mode:
authorTomasz Lis <[email protected]>2013-07-17 13:49:14 +0200
committerIan Romanick <[email protected]>2013-07-18 16:03:42 -0700
commit36259a16fe9b1ab60c7cb4fbf41077fb480a2bec (patch)
tree1d75497e5e714945f30ec500cf5b2ce5a5e643d7 /src/glx/dri_glx.c
parent7791c9869b233e45a9089eae124dc9aa4f4e519a (diff)
glx: Store the value of renderType while creating context
Make sure that renderType property value is stored in GLX context while it's being created. Further patches will be provided to make the value correspond to fbconfig's renderType. v2 (idr): Move a hunk from the next patch to this patch to prevent a build break. Signed-off-by: Tomasz Lis <[email protected]> Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/dri_glx.c')
-rw-r--r--src/glx/dri_glx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c
index ba8fda20ad2..cc45734b66c 100644
--- a/src/glx/dri_glx.c
+++ b/src/glx/dri_glx.c
@@ -602,6 +602,8 @@ dri_create_context(struct glx_screen *base,
return NULL;
}
+ pcp->base.renderType = renderType;
+
if (!XF86DRICreateContextWithConfig(psc->base.dpy, psc->base.scr,
config->base.visualID,
&pcp->hwContextID, &hwContext)) {