summaryrefslogtreecommitdiff
path: root/src/egl_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl_common.c')
-rw-r--r--src/egl_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl_common.c b/src/egl_common.c
index 8f02afa..eb01492 100644
--- a/src/egl_common.c
+++ b/src/egl_common.c
@@ -122,7 +122,7 @@ bool stl_init_egl_context(struct stl_egl *egl, struct stl_egl_global *global, EG
STELA_LOG_GL_CONTEXT_CREATION(stl_gl_vers[i]);
- const EGLint *context_attr = stl_gl_vers[i].api == STELA_GL_API ?
+ const EGLint *context_attr = (stl_gl_vers[i].api == STELA_GL_API) ?
context_attr_gl : context_attr_gles;
eglBindAPI(stl_gl_vers[i].api);