Module: Mesa Branch: master Commit: 07cfe4e6aa2af646445c3e0f6be5eea60c721094 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=07cfe4e6aa2af646445c3e0f6be5eea60c721094
Author: Rob Clark <robcl...@freedesktop.org> Date: Fri Jun 24 15:11:02 2016 -0400 glsl/standalone: initialize MaxUserAssignableUniformLocations Signed-off-by: Rob Clark <robcl...@freedesktop.org> --- 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 760fe8f..88fe5fd 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; } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit