mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 05:40:39 +02:00
glsl/standalone: initialize MaxUserAssignableUniformLocations
Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
1759eb1d19
commit
07cfe4e6aa
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue