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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user