summaryrefslogtreecommitdiffstats
path: root/opengl/system/egl
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-08-13 11:53:59 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-13 11:53:59 -0700
commit42e7cfa648fa233e7e1cc5f11a0fefb244be08ef (patch)
tree8a76fc33c5e6bb4e2d2640ae990a91abd3246a66 /opengl/system/egl
parent3ad13188d4e7e873947040ec22a35d73efb76812 (diff)
parent3bd0e079a9d5321f952c2871fb453775810879f7 (diff)
downloadandroid_device_generic_goldfish-42e7cfa648fa233e7e1cc5f11a0fefb244be08ef.tar.gz
android_device_generic_goldfish-42e7cfa648fa233e7e1cc5f11a0fefb244be08ef.tar.bz2
android_device_generic_goldfish-42e7cfa648fa233e7e1cc5f11a0fefb244be08ef.zip
am 3bd0e079: Merge "Return EGL_FALSE if eglChooseConfig failed to find any matching configs"
* commit '3bd0e079a9d5321f952c2871fb453775810879f7': Return EGL_FALSE if eglChooseConfig failed to find any matching configs
Diffstat (limited to 'opengl/system/egl')
-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 2ec17fb..cf3df52 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;
}