diff options
Diffstat (limited to 'opengl/libs/EGL/egl.cpp')
-rw-r--r-- | opengl/libs/EGL/egl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index eeb587a..f3b4e36 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -811,6 +811,7 @@ EGLBoolean eglGetConfigs( EGLDisplay dpy, { egl_display_t const * const dp = get_display(dpy); if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); + if (!num_config) return setError(EGL_BAD_PARAMETER, EGL_FALSE); GLint numConfigs = dp->numTotalConfigs; if (!configs) { |