diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-11-27 14:03:55 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-11-27 14:04:42 -0800 |
commit | 3adebe34a16788e1d6bb9da4b315a589eba4d3fe (patch) | |
tree | 78e9de42d5b1ee708076448babe11fc17d143b6b | |
parent | 1644a68ff0df5e6af82ac9496ee66362584f72fb (diff) |
egl: Fix call to eglBindAPI for WAFFLE_OPENGL_ES3
The switch statement which translated WAFFLE_OPENGL_$API to
EGL_OPENGL*_API lacked a case for WAFFLE_OPENGL_ES3.
This codepath, which is part of waffle_context_create(), was never
exercised until recently because eglChooseConfig(EGL_OPENGL_ES3_BIT_KHR)
failed against Mesa.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | src/waffle/egl/wegl_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/waffle/egl/wegl_context.c b/src/waffle/egl/wegl_context.c index a8320bf..767c095 100644 --- a/src/waffle/egl/wegl_context.c +++ b/src/waffle/egl/wegl_context.c @@ -43,6 +43,7 @@ bind_api(int32_t waffle_context_api) break; case WAFFLE_CONTEXT_OPENGL_ES1: case WAFFLE_CONTEXT_OPENGL_ES2: + case WAFFLE_CONTEXT_OPENGL_ES3: ok &= eglBindAPI(EGL_OPENGL_ES_API); break; default: |