diff options
author | Chia-I Wu <[email protected]> | 2010-05-05 12:28:23 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-05-05 12:29:19 +0800 |
commit | 781d56eac4476689dd45a88e8c14162a592414ea (patch) | |
tree | 041b0f91cfe6724eb32d8f23c64156694878d346 /progs/egl/eglut | |
parent | 53a53b25497034bf827bec63c30038f881343ef5 (diff) |
progs/egl: Fix eglut with OpenGL ES 2.0.
EGL_OPENGL_ES2_BIT is not set when choosing OpenGL ES 2.0 configs.
Diffstat (limited to 'progs/egl/eglut')
-rw-r--r-- | progs/egl/eglut/eglut.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/egl/eglut/eglut.c b/progs/egl/eglut/eglut.c index b9b5e6e5a8c..ff7d8df7182 100644 --- a/progs/egl/eglut/eglut.c +++ b/progs/egl/eglut/eglut.c @@ -84,8 +84,10 @@ _eglutChooseConfig(void) renderable_type = 0x0; if (_eglut->api_mask & EGLUT_OPENGL_BIT) renderable_type |= EGL_OPENGL_BIT; - if (_eglut->api_mask & (EGLUT_OPENGL_ES1_BIT | EGLUT_OPENGL_ES2_BIT)) + if (_eglut->api_mask & EGLUT_OPENGL_ES1_BIT) renderable_type |= EGL_OPENGL_ES_BIT; + if (_eglut->api_mask & EGLUT_OPENGL_ES2_BIT) + renderable_type |= EGL_OPENGL_ES2_BIT; if (_eglut->api_mask & EGLUT_OPENVG_BIT) renderable_type |= EGL_OPENVG_BIT; config_attribs[i++] = renderable_type; |