diff options
author | Matt Turner <[email protected]> | 2015-10-07 11:43:58 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-10-07 11:48:49 -0700 |
commit | 164c8277f0edaab64e3cea43a1cf943ace62b21b (patch) | |
tree | 59ea2cca7ce7b305ce014198101798c84f8f7b1a /src/egl/drivers | |
parent | 13e69805ea6a3aa0ec80c2b2430ae4da05c6b1ae (diff) |
egl/dri2: Properly dereference array.
Fixes a regression that broke EGL since
commit 858f2f2ae6d72f338fdd6d544b0c733814e22724
Author: Emil Velikov <[email protected]>
Date: Sun Sep 13 12:25:27 2015 +0100
egl/dri2: ease srgb __DRIconfig conditionals
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 229285fbbe6..4cc5f231333 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -1010,10 +1010,10 @@ dri2_create_context(_EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf, * doubleBufferMode check in * src/mesa/main/context.c:check_compatible() */ - if (dri2_config->dri_double_config) - dri_config = dri2_config->dri_double_config; + if (dri2_config->dri_double_config[0]) + dri_config = dri2_config->dri_double_config[0]; else - dri_config = dri2_config->dri_single_config; + dri_config = dri2_config->dri_single_config[0]; /* EGL_WINDOW_BIT is set only when there is a dri_double_config. This * makes sure the back buffer will always be used. |