diff options
author | Ian Romanick <[email protected]> | 2015-04-29 16:12:40 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-05-28 16:56:31 -0700 |
commit | 9b5e92f4ccc6ee1cb9caea947f6efaad2b391cf1 (patch) | |
tree | b7b85f81804677cbc541eb54ab3683e4380660dd /src/mesa/drivers/dri/common | |
parent | 03fd6704db9f1d0f203bf8da18bd587c7e35ce60 (diff) |
mesa: Allow overriding the version of ES2+ contexts
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index f0e5440c225..2d847ef7bc8 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -166,6 +166,10 @@ driCreateNewScreen2(int scrn, int fd, gl_api api; int version; + api = API_OPENGLES2; + if (_mesa_override_gl_version_contextless(&consts, &api, &version)) + psp->max_gl_es2_version = version; + api = API_OPENGL_COMPAT; if (_mesa_override_gl_version_contextless(&consts, &api, &version)) { if (api == API_OPENGL_CORE) { |