mesa/glsl: remove hack to reset sampler units to zero
Now that we have the is_arb_asm flag we can just skip the initialisation. V2: remove hack from standalone compiler where it was never needed since it only compiles glsl shaders. Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -107,10 +107,6 @@ init_gl_program(struct gl_program *prog, GLenum target, bool is_arb_asm)
|
||||
prog->RefCount = 1;
|
||||
prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB;
|
||||
prog->is_arb_asm = is_arb_asm;
|
||||
|
||||
/* default mapping from samplers to texture units */
|
||||
for (int i = 0; i < MAX_SAMPLERS; i++)
|
||||
prog->SamplerUnits[i] = i;
|
||||
}
|
||||
|
||||
struct gl_program *
|
||||
|
Reference in New Issue
Block a user