commit | 1277bb01166bc7ef75305014cff36166b4c2b393 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed Jun 03 14:49:08 2009 -0700 |
committer | Mathias Agopian <mathias@google.com> | Wed Jun 03 14:49:08 2009 -0700 |
tree | 47efc5d1f6a0cd3bcfc82018f0fb665270223b80 | |
parent | 5fbcaf9a90ca57b81739112c20859ef55fe18336 [diff] [blame] |
when looking for an EGLConfig always pick the first one that matches, not the last one
diff --git a/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp b/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp index 25e351c..52b0f68 100644 --- a/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp +++ b/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
@@ -164,6 +164,7 @@ eglGetConfigAttrib(display, configs[i], EGL_ALPHA_SIZE, &a); if (fbSzA == a && fbSzR == r && fbSzG == g && fbSzB == b) { config = configs[i]; + break; } } }