st/mesa: fix incorrect RowStride computation
[mesa.git] / progs / egl / eglgears.c
index 2d9b8cac7f712902824673338eb0a1e3c36c8944..63490953aee1b11f785359d419c5484bb5bae53e 100644 (file)
@@ -426,6 +426,7 @@ main(int argc, char *argv[])
        }
        printf("eglgears: Using screen mode/size %d: %d x %d\n", chosenMode, width, height);
 
+       eglBindAPI(EGL_OPENGL_API);
        ctx = eglCreateContext(d, configs[0], EGL_NO_CONTEXT, NULL);
        if (ctx == EGL_NO_CONTEXT) {
                printf("eglgears: failed to create context\n");