diff options
| author | Jesse Hall <jessehall@google.com> | 2013-08-13 18:47:50 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-08-13 18:47:50 +0000 |
| commit | 3bd0e079a9d5321f952c2871fb453775810879f7 (patch) | |
| tree | b05a63d7da119e7cf56c3ba8788d1491dd05ebef | |
| parent | 8f9288eaf10b50d19038f5c7024616e147c64735 (diff) | |
| parent | 8763ae7362f86fff1d40235f46847f975e74e20d (diff) | |
| download | android_device_generic_goldfish-3bd0e079a9d5321f952c2871fb453775810879f7.tar.gz android_device_generic_goldfish-3bd0e079a9d5321f952c2871fb453775810879f7.tar.bz2 android_device_generic_goldfish-3bd0e079a9d5321f952c2871fb453775810879f7.zip | |
Merge "Return EGL_FALSE if eglChooseConfig failed to find any matching configs"
| -rw-r--r-- | opengl/system/egl/egl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/opengl/system/egl/egl.cpp b/opengl/system/egl/egl.cpp index da89c4d..9babde9 100644 --- a/opengl/system/egl/egl.cpp +++ b/opengl/system/egl/egl.cpp @@ -588,6 +588,8 @@ EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig DEFINE_AND_VALIDATE_HOST_CONNECTION(EGL_FALSE); *num_config = rcEnc->rcChooseConfig(rcEnc, (EGLint*)attrib_list, attribs_size * sizeof(EGLint), (uint32_t*)configs, config_size); + if (*num_config <= 0) + return EGL_FALSE; return EGL_TRUE; } |
