diff options
author | Mathias Agopian <mathias@google.com> | 2009-06-03 14:49:08 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-06-03 14:49:08 -0700 |
commit | e92c713cb685f78d2041b7ffc89ccb155c992b2d (patch) | |
tree | 75c6c8938e470cad8fea0e8d1b1ee33f85293e45 /libs | |
parent | 6457359fa5df7869d5881acee80b34dfc760a5bf (diff) | |
download | frameworks_native-e92c713cb685f78d2041b7ffc89ccb155c992b2d.zip frameworks_native-e92c713cb685f78d2041b7ffc89ccb155c992b2d.tar.gz frameworks_native-e92c713cb685f78d2041b7ffc89ccb155c992b2d.tar.bz2 |
when looking for an EGLConfig always pick the first one that matches, not the last one
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ void DisplayHardware::init(uint32_t dpy) eglGetConfigAttrib(display, configs[i], EGL_ALPHA_SIZE, &a); if (fbSzA == a && fbSzR == r && fbSzG == g && fbSzB == b) { config = configs[i]; + break; } } } |