mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 20:20:24 +01:00
glsl: fix regression from sampler arrays commit
This commit is contained in:
parent
1b3e3e6b84
commit
a98dccca36
1 changed files with 1 additions and 3 deletions
|
|
@ -4292,10 +4292,8 @@ _slang_codegen_global_variable(slang_assemble_ctx *A, slang_variable *var,
|
|||
}
|
||||
#endif
|
||||
{
|
||||
const GLuint swizzle = _slang_var_swizzle(totalSize, 0);
|
||||
GLint sampNum = _mesa_add_sampler(prog->Parameters, varName, datatype);
|
||||
store = _slang_new_ir_storage_swz(PROGRAM_SAMPLER, sampNum,
|
||||
totalSize, swizzle);
|
||||
store = _slang_new_ir_storage(PROGRAM_SAMPLER, sampNum, texIndex);
|
||||
|
||||
/* If we have a sampler array, then we need to allocate the
|
||||
* additional samplers to ensure we don't allocate them elsewhere.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue