From 07cfe4e6aa2af646445c3e0f6be5eea60c721094 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 24 Jun 2016 15:11:02 -0400 Subject: [PATCH] glsl/standalone: initialize MaxUserAssignableUniformLocations Signed-off-by: Rob Clark --- src/compiler/glsl/standalone.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp index 760fe8f01b5..88fe5fde096 100644 --- a/src/compiler/glsl/standalone.cpp +++ b/src/compiler/glsl/standalone.cpp @@ -222,6 +222,10 @@ initialize_context(struct gl_context *ctx, gl_api api) ctx->Const.GenerateTemporaryNames = true; ctx->Const.MaxPatchVertices = 32; + /* GL_ARB_explicit_uniform_location, GL_MAX_UNIFORM_LOCATIONS */ + ctx->Const.MaxUserAssignableUniformLocations = + 4 * MESA_SHADER_STAGES * MAX_UNIFORMS; + ctx->Driver.NewShader = _mesa_new_linked_shader; } -- 2.30.2