diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-31 01:25:59 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-01-31 11:20:15 +0800 |
commit | 66f0517695668ba9a30618015a94bfea4ba08a9b (patch) | |
tree | 734cb85b274f899c3a82d1b784a72be1c3ba563f | |
parent | 6d12c7083e81625e1468351ef5e24e9168f0d549 (diff) | |
download | external_mesa3d-66f0517695668ba9a30618015a94bfea4ba08a9b.zip external_mesa3d-66f0517695668ba9a30618015a94bfea4ba08a9b.tar.gz external_mesa3d-66f0517695668ba9a30618015a94bfea4ba08a9b.tar.bz2 |
st/egl: Do not ignore configs without a renderable type.
Configs without a renderable type are still informative for programs
such as eglinfo.
-rw-r--r-- | src/gallium/state_trackers/egl/common/egl_g3d.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.c b/src/gallium/state_trackers/egl/common/egl_g3d.c index e8f46e5..6c8f3b9 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d.c +++ b/src/gallium/state_trackers/egl/common/egl_g3d.c @@ -464,18 +464,18 @@ egl_g3d_add_configs(_EGLDriver *drv, _EGLDisplay *dpy, EGLint id) struct egl_g3d_config *gconf; EGLBoolean valid; + gconf = CALLOC_STRUCT(egl_g3d_config); + if (!gconf) + continue; + + _eglInitConfig(&gconf->base, id); + api_mask = get_mode_api_mask(&native_configs[i]->mode, gdrv->api_mask); if (!api_mask) { _eglLog(_EGL_DEBUG, "no state tracker supports config 0x%x", native_configs[i]->mode.visualID); - continue; } - gconf = CALLOC_STRUCT(egl_g3d_config); - if (!gconf) - continue; - - _eglInitConfig(&gconf->base, id); valid = _eglConfigFromContextModesRec(&gconf->base, &native_configs[i]->mode, api_mask, api_mask); if (valid) { |