when looking for an EGLConfig always pick the first one that matches, not the last one

This commit is contained in:
Mathias Agopian
2009-06-03 14:49:08 -07:00
parent 5fbcaf9a90
commit 1277bb0116

View File

@@ -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;
}
}
}