glx: Store the value of renderType while creating context
[mesa.git] / src / glx / dri_glx.c
index ba8fda20ad2be8812bbf1688b175527fa5705ad5..cc45734b66c1763557fdc9055fd731f329c760e5 100644 (file)
@@ -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)) {