From 472a6019665094c18fc47624b343ddc8c90f102c Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 4 Jan 2010 13:32:50 +0800 Subject: progs/egl: Fix screen surface demos. Set the screen surface size to the mode size, as the spec requires the screen surface size to be larger than the mode size. Besides, bind the API to OpenGL as they are written in it. Signed-off-by: Chia-I Wu --- progs/egl/eglgears.c | 1 + 1 file changed, 1 insertion(+) (limited to 'progs/egl/eglgears.c') diff --git a/progs/egl/eglgears.c b/progs/egl/eglgears.c index 2d9b8cac7f7..63490953aee 100644 --- a/progs/egl/eglgears.c +++ b/progs/egl/eglgears.c @@ -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"); -- cgit v1.2.3