OSDN Git Service

drm_hwcomposer: fix misc style issues in gl_compositor.cpp
authorZach Reizner <zachr@google.com>
Thu, 11 Jun 2015 18:40:18 +0000 (11:40 -0700)
committerZach Reizner <zachr@google.com>
Thu, 11 Jun 2015 18:40:22 +0000 (11:40 -0700)
Change-Id: I9b3adf7979ff86eb1b89de03f3d8fe8bd1e35dc4

gl_compositor.cpp

index c7aeff4..eb255e6 100644 (file)
@@ -343,9 +343,15 @@ int GLCompositor::Init() {
   };
   // clang-format on
 
-  const EGLint config_attribs[] = {EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
-                                   EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8,
-                                   EGL_BLUE_SIZE, 8, EGL_NONE};
+  const EGLint config_attribs[] = {EGL_RENDERABLE_TYPE,
+                                   EGL_OPENGL_ES2_BIT,
+                                   EGL_RED_SIZE,
+                                   8,
+                                   EGL_GREEN_SIZE,
+                                   8,
+                                   EGL_BLUE_SIZE,
+                                   8,
+                                   EGL_NONE};
 
   const EGLint context_attribs[] = {EGL_CONTEXT_CLIENT_VERSION, 3, EGL_NONE};
 
@@ -586,7 +592,7 @@ int GLCompositor::EndContext() {
       priv_->saved_egl_ctx != eglGetCurrentContext()) {
     if (!eglMakeCurrent(priv_->saved_egl_display, priv_->saved_egl_read,
                         priv_->saved_egl_draw, priv_->saved_egl_ctx)) {
-      ALOGE("Failed to make the OpenGL ES Context current: %s",
+      ALOGE("Failed to make the old OpenGL ES Context current: %s",
             get_egl_error());
       return 1;
     }