summaryrefslogtreecommitdiff
path: root/opengl/libagl/egl.cpp
diff options
context:
space:
mode:
author Kenny Root <kroot@google.com> 2010-06-01 19:56:42 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2010-06-01 19:56:42 -0700
commit847b82d8a6d3cc6969cbeeaf9ca7e879abab482a (patch)
tree75dc7b61d605847df777139daceefd72866c46b0 /opengl/libagl/egl.cpp
parent8799cdfb012935501e47f15f28d6a8ed90bd464d (diff)
parent89bc1395748a0a139db82adbf01166ed6fa79766 (diff)
am 89bc1395: Merge "Add more error checking for ndc" into froyo
Merge commit '89bc1395748a0a139db82adbf01166ed6fa79766' into froyo-plus-aosp * commit '89bc1395748a0a139db82adbf01166ed6fa79766': (392 commits) Add more error checking for ndc Add javadoc for camera scene modes. more clean-up in preparation of bigger changes Fix a typo in Singleton<> Avoid copying for input recording frames in CameraSource Add video frame parameter. more clean-up of Surfaceflinger's client management Better sniffing of MPEG4 content by checking for a compatible sub-brand. Remove the logic in CameraSource using CameraParameters class to find out the buffer size. Add support for gps altitude EXIF tags. minor clean-up GLclampx -> GLclampf clean-up dead-code Make sure to use filtering while in fixed-size mode oopsie. forgot to displatch SET_BUFFERS_GEOMETRY Avoid repeatedly allocating and freeing memory in CameraSource After failing to create an AudioTrack, only stop the source if we were the ones starting it. Convert a number of assertions into runtime errors (OggExtractor) fix [2712278] The preview buffer left some black borders in left and bottom edges Fix 2667859: change text back to default size Support for thumbnail extraction in the Matroska extractor. ...
Diffstat (limited to 'opengl/libagl/egl.cpp')
-rw-r--r--opengl/libagl/egl.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index b6e0aae74ee8..7cb01d0e1a0b 100644
--- a/opengl/libagl/egl.cpp
+++ b/opengl/libagl/egl.cpp
@@ -1525,8 +1525,13 @@ EGLBoolean eglChooseConfig( EGLDisplay dpy, const EGLint *attrib_list,
}
if (ggl_unlikely(attrib_list==0)) {
- *num_config = 0;
- return EGL_TRUE;
+ /*
+ * A NULL attrib_list should be treated as though it was an empty
+ * one (terminated with EGL_NONE) as defined in
+ * section 3.4.1 "Querying Configurations" in the EGL specification.
+ */
+ static const EGLint dummy = EGL_NONE;
+ attrib_list = &dummy;
}
int numAttributes = 0;