diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-04 13:32:50 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-01-12 10:55:35 +0800 |
commit | 472a6019665094c18fc47624b343ddc8c90f102c (patch) | |
tree | 17209a9bddfde141bbc86d4b04491fe07bb557ee /progs/egl/eglgears.c | |
parent | c657c80180255b859b9229a994d111115aaf198d (diff) | |
download | external_mesa3d-472a6019665094c18fc47624b343ddc8c90f102c.zip external_mesa3d-472a6019665094c18fc47624b343ddc8c90f102c.tar.gz external_mesa3d-472a6019665094c18fc47624b343ddc8c90f102c.tar.bz2 |
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 <olvaffe@gmail.com>
Diffstat (limited to 'progs/egl/eglgears.c')
-rw-r--r-- | progs/egl/eglgears.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/egl/eglgears.c b/progs/egl/eglgears.c index 2d9b8ca..6349095 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"); |