Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-native: Commit

frameworks/native


Commit MetaInfo

Revisione82527383f1fa90d3b961dcf9b595f5167fb59c4 (tree)
Time2019-08-30 13:47:50
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

libEGL: remove incorrect error message

The logic in commit 0c8552ec5 is reversed.

Fixes: 0c8552ec5 ("libEGL: select pixel format by EGL_NATIVE_VISUAL_ID")
Reported-by: Michael Goffioul <michael.goffioul@gmail.com>

Change Summary

Incremental Difference

--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -658,9 +658,9 @@ void getNativePixelFormat(EGLDisplay dpy, egl_connection_t* cnx, EGLConfig confi
658658 if (colorDepth > 24) {
659659 *format = HAL_PIXEL_FORMAT_RGBA_1010102;
660660 } else if (cnx->egl.eglGetConfigAttrib(dpy, config, EGL_NATIVE_VISUAL_ID, &colorDepth)) {
661- ALOGE("eglGetConfigAttrib(EGL_NATIVE_VISUAL_ID) failed: %#x", eglGetError());
662661 *format = android_pixel_format(colorDepth);
663662 } else {
663+ ALOGE("eglGetConfigAttrib(EGL_NATIVE_VISUAL_ID) failed: %#x", eglGetError());
664664 *format = HAL_PIXEL_FORMAT_RGBA_8888;
665665 }
666666 } else {
Show on old repository browser