pick first mode
authorAlan Hourihane <alanh@tungstengraphics.com>
Sun, 17 Aug 2008 20:59:00 +0000 (21:59 +0100)
committerAlan Hourihane <alanh@tungstengraphics.com>
Sun, 17 Aug 2008 20:59:00 +0000 (21:59 +0100)
progs/egl/eglgears.c
progs/egl/egltri.c

index 20f6c1f..31346d9 100644 (file)
@@ -415,7 +415,7 @@ main(int argc, char *argv[])
                eglGetModeAttribMESA(d, mode[i], EGL_WIDTH, &w);
                eglGetModeAttribMESA(d, mode[i], EGL_HEIGHT, &h);
                printf("%3d: %d x %d\n", i, w, h);
-               if (w > width && h > height && w <= 1280 && h <= 1024) {
+               if (w > width && h > height) {
                        width = w;
                        height = h;
                         chosenMode = i;
index 43190ba..44096d9 100644 (file)
@@ -201,7 +201,7 @@ int main(int argc, char *argv[])
                eglGetModeAttribMESA(d, mode[i], EGL_WIDTH, &w);
                eglGetModeAttribMESA(d, mode[i], EGL_HEIGHT, &h);
                printf("%3d: %d x %d\n", i, w, h);
-               if (w > width && h > height && w <= 1024 && h <= 768) {
+               if (w > width && h > height) {
                        width = w;
                        height = h;
                        chosenMode = i;