summaryrefslogtreecommitdiffstatsci
path: root/src/egl.cpp
diff options
context:
space:
mode:
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));