summaryrefslogtreecommitdiff
path: root/src/egl
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-17 00:59:13 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-17 00:59:13 +0000
commitd06da508880e9baee403b0d0046764b31087cdfd (patch)
treed373c8ed0a835c34586ba5d5a7cfa1285ae190ee /src/egl
parentc1082804a853233eee123c5b2408ba9b3faa7fd9 (diff)
Fix several internal problems with generating the list of configs.
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/eglconfig.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c
index 59503f6c9b..34195c5277 100644
--- a/src/egl/main/eglconfig.c
+++ b/src/egl/main/eglconfig.c
@@ -19,7 +19,7 @@
/**
* Convert an _EGLConfig to a __GLcontextModes object.
*/
-void
+static void
_eglConfigToContextModesRec(const _EGLConfig *config, __GLcontextModes *mode)
{
memset(mode, 0, sizeof(*mode));
@@ -185,6 +185,7 @@ _eglAddConfig(_EGLDisplay *display, const _EGLConfig *config)
if (newConfigs) {
display->Configs = newConfigs;
display->Configs[n] = *config; /* copy struct */
+ display->Configs[n].Handle = n;
display->NumConfigs++;
return display->Configs + n;
}
@@ -633,7 +634,7 @@ _eglFillInConfigs(_EGLConfig * configs,
config->glmode.visualRating = (j == 0) ? GLX_NONE : GLX_SLOW_CONFIG;
_eglSetConfigAttrib(config, EGL_STENCIL_SIZE, stencil_bits[k]);
- _eglSetConfigAttrib(config, EGL_DEPTH_SIZE, depth_bits[k]);
+ _eglSetConfigAttrib(config, EGL_DEPTH_SIZE, depth_bits[i]);
config->glmode.visualType = visType;
config->glmode.renderType = GLX_RGBA_BIT;