diff options
author | Tomasz Lis <tomasz.lis@intel.com> | 2013-07-17 13:49:14 +0200 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-07-18 16:03:42 -0700 |
commit | 36259a16fe9b1ab60c7cb4fbf41077fb480a2bec (patch) | |
tree | 1d75497e5e714945f30ec500cf5b2ce5a5e643d7 /src/glx/dri_glx.c | |
parent | 7791c9869b233e45a9089eae124dc9aa4f4e519a (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 <tomasz.lis@intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glx/dri_glx.c')
-rw-r--r-- | src/glx/dri_glx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c index ba8fda20ad..cc45734b66 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)) { |