diff options
author | Marek Olšák <[email protected]> | 2013-07-30 22:29:24 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-07-30 23:31:28 +0200 |
commit | 0f6a7cb00c86fbdb415b01450bb1ece8cfe1e31d (patch) | |
tree | 33da25bd8026d511d0c4f08f65d4ff57e9a1a4b0 /src/mesa/state_tracker/st_extensions.c | |
parent | ab789393443629027dca16e0aad501d6c1c32cb0 (diff) |
mesa,glsl,st/dri: add a new driconf option force_glsl_version for Unigine
See documentation in mtypes.h.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 6bc1284f826..a1457767890 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -598,6 +598,11 @@ void st_init_extensions(struct st_context *st) _mesa_override_glsl_version(st->ctx); + if (st->options.force_glsl_version > 0 && + st->options.force_glsl_version <= ctx->Const.GLSLVersion) { + ctx->Const.ForceGLSLVersion = st->options.force_glsl_version; + } + if (ctx->Const.GLSLVersion >= 130) { ctx->Const.NativeIntegers = GL_TRUE; ctx->Const.MaxClipPlanes = 8; |