From: Rob Clark Date: Fri, 24 Jun 2016 19:11:02 +0000 (-0400) Subject: glsl/standalone: initialize MaxUserAssignableUniformLocations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07cfe4e6aa2af646445c3e0f6be5eea60c721094;p=mesa.git glsl/standalone: initialize MaxUserAssignableUniformLocations Signed-off-by: Rob Clark --- 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; }