mesa,glsl,st/dri: add a new driconf option force_glsl_version for Unigine

See documentation in mtypes.h.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Marek Olšák
2013-07-30 22:29:24 +02:00
parent ab78939344
commit 0f6a7cb00c
9 changed files with 64 additions and 8 deletions

View File

@@ -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;