| author | Sami Kyostila <sami.kyostila@gmail.com> | 2008-10-10 20:45:07 (GMT) |
|---|---|---|
| committer | Sami Kyostila <sami.kyostila@gmail.com> | 2008-10-10 20:45:07 (GMT) |
| commit | 05b4a2902627ff9a0de1670e883a4fe28cc596de (patch) | |
| tree | 19df520a74c6c304255f080c40cf991b06a9a3de | |
| parent | 086c56c1623a0202a2b8d660492a11a6580dcc14 (diff) | |
Report all found GLX configs.master
| -rw-r--r-- | trunk/dgles/egl/egl-glx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/trunk/dgles/egl/egl-glx.c b/trunk/dgles/egl/egl-glx.c index 062ef12..6fac294 100644 --- a/trunk/dgles/egl/egl-glx.c +++ b/trunk/dgles/egl/egl-glx.c @@ -130,7 +130,11 @@ EGLBoolean APIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, if (foundConfigs) { - configs[0] = foundConfigs[0]; + int i; + for (i = 0; i < *num_config && i < config_size; i++) + { + configs[i] = foundConfigs[i]; + } XFree(foundConfigs); return EGL_TRUE; } |
