diff options
author | Rob Clark <[email protected]> | 2016-06-24 15:11:02 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-07-02 09:00:19 -0400 |
commit | 07cfe4e6aa2af646445c3e0f6be5eea60c721094 (patch) | |
tree | e35a224b0ab05edd628ce3d3b335c9933808510f /src/compiler | |
parent | 1759eb1d197e9794cd43ef86261372da719f4f2b (diff) |
glsl/standalone: initialize MaxUserAssignableUniformLocations
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/standalone.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |