mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
mesa: refactor GetUniformIndices
Use _mesa_program_resource_index to get indices. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
This commit is contained in:
parent
51313f567d
commit
1b256eb0ec
1 changed files with 3 additions and 3 deletions
|
|
@ -986,9 +986,9 @@ _mesa_GetUniformIndices(GLuint program,
|
|||
}
|
||||
|
||||
for (i = 0; i < uniformCount; i++) {
|
||||
unsigned offset;
|
||||
uniformIndices[i] = _mesa_get_uniform_location(shProg,
|
||||
uniformNames[i], &offset);
|
||||
struct gl_program_resource *res =
|
||||
_mesa_program_resource_find_name(shProg, GL_UNIFORM, uniformNames[i]);
|
||||
uniformIndices[i] = _mesa_program_resource_index(shProg, res);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue