commit | e92c713cb685f78d2041b7ffc89ccb155c992b2d | [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 | 75c6c8938e470cad8fea0e8d1b1ee33f85293e45 | |
parent | 6457359fa5df7869d5881acee80b34dfc760a5bf [diff] |
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; } } }