summaryrefslogtreecommitdiffstatsci
path: root/src/egl.cpp
diff options
context:
space:
mode:
authorsuyambulingamrm <suyambu.rm@samsung.com>2014-06-04 18:58:44 +0530
committersuyambulingamrm <suyambu.rm@samsung.com>2014-06-05 09:39:01 +0530
commit79930ddc7c5f111eb5489449b09d97afb28a0e7b (patch)
tree86f7e40f3c2943c46c60a375dd64b8e1b9cf848a /src/egl.cpp
parent5a3b5116b86d4089f2dae320387350a7e0c01083 (diff)
Issue #78. Command line options for listing gles-versions available and to set the gles-version.
Diffstat (limited to 'src/egl.cpp')
-rw-r--r--src/egl.cpp4
1 files changed, 4 insertions, 0 deletions
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));