| -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; } |
