mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
mesa: stop copying SamplerUnits twice
The call to _mesa_update_shader_textures_used() already takes care of copying for us. Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
25a32c2cbf
commit
9c9e3e7ee1
1 changed files with 0 additions and 4 deletions
|
|
@ -859,10 +859,6 @@ _mesa_uniform(struct gl_context *ctx, struct gl_shader_program *shProg,
|
|||
flushed = true;
|
||||
}
|
||||
|
||||
memcpy(prog->SamplerUnits,
|
||||
sh->SamplerUnits,
|
||||
sizeof(sh->SamplerUnits));
|
||||
|
||||
_mesa_update_shader_textures_used(shProg, prog);
|
||||
if (ctx->Driver.SamplerUniformChange)
|
||||
ctx->Driver.SamplerUniformChange(ctx, prog->Target, prog);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue