summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/libs/EGL/egl.cpp')
-rw-r--r--opengl/libs/EGL/egl.cpp1
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) {