summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-08-13 18:47:50 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-08-13 18:47:50 +0000
commit3bd0e079a9d5321f952c2871fb453775810879f7 (patch)
treeb05a63d7da119e7cf56c3ba8788d1491dd05ebef
parent8f9288eaf10b50d19038f5c7024616e147c64735 (diff)
parent8763ae7362f86fff1d40235f46847f975e74e20d (diff)
downloadandroid_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.cpp2
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;
}