From 79930ddc7c5f111eb5489449b09d97afb28a0e7b Mon Sep 17 00:00:00 2001 From: suyambulingamrm Date: Wed, 4 Jun 2014 18:58:44 +0530 Subject: Issue #78. Command line options for listing gles-versions available and to set the gles-version. --- src/egl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/egl.cpp') diff --git a/src/egl.cpp b/src/egl.cpp index 7dc3366..1f577eb 100644 --- a/src/egl.cpp +++ b/src/egl.cpp @@ -57,6 +57,10 @@ createEGLContextAndWindow(egl_state_t *state, const device_config_t& device_conf } } + if(device_config.egl_gles_version) { + ctx_attr[1] = device_config.egl_gles_version; + } + state->dpy = XOpenDisplay (NULL); if (state->dpy == NULL) { warnx ("Failed to open display: %s\n", XDisplayName (0)); -- cgit v1.3.1-4-g156e