diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-06-06 04:08:35 +0900 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-06-06 04:08:35 +0900 |
| commit | 01a2efe93123ef98f69737eb6d7d92e426314aeb (patch) | |
| tree | 86f7e40f3c2943c46c60a375dd64b8e1b9cf848a /src/egl.cpp | |
| parent | 5a3b5116b86d4089f2dae320387350a7e0c01083 (diff) | |
| parent | 79930ddc7c5f111eb5489449b09d97afb28a0e7b (diff) | |
Merge pull request #81 from Samsung/Issue_78
Command line options for listing gles-versions available and to set the gles-version.
ref: https://github.com/Samsung/caskbench/issues/78
Diffstat (limited to 'src/egl.cpp')
| -rw-r--r-- | src/egl.cpp | 4 |
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)); |