Bug 824090 - Fix gl config selection in boot animation, r=cjones
authorMichael Wu <mwu@mozilla.com>
Sat, 22 Dec 2012 13:01:07 -0500
changeset 126001 71dc7d4943f8ba0a2589037e52d22cff89234a57
parent 126000 38fbb50e6038cd990c72650ab5ad8c1adbb6c9eb
child 126002 eee94feb23acb76e1d8d11d58bf90d4d0e13ce0c
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs824090
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 824090 - Fix gl config selection in boot animation, r=cjones
b2g/app/BootAnimation.cpp
--- a/b2g/app/BootAnimation.cpp
+++ b/b2g/app/BootAnimation.cpp
@@ -358,19 +358,18 @@ AnimationThread(void *)
 
     EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
     eglInitialize(display, nullptr, nullptr);
 
     int format;
     ANativeWindow const * const window = gNativeWindow.get();
     window->query(window, NATIVE_WINDOW_FORMAT, &format);
 
-    EGLConfig config = NULL;
-    CreateConfig(&config, display, format);
-    if (!config) {
+    EGLConfig config;
+    if (!CreateConfig(&config, display, format)) {
         LOGW("Could not find config for pixel format");
         return nullptr;
     }
 
     EGLSurface surface = eglCreateWindowSurface(display, config, gNativeWindow.get(), nullptr);
 
     const cdir_entry *entry = nullptr;
     const local_file_header *file = nullptr;