Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-03-31 14:41:15 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:31:51 +0300
commitb1d4e83632a515ee179b497655b44d5554c3af45 (patch)
treebf6f701cf30e9589efde5286339d4441e78b5c91 /source/blender/draw/intern/draw_manager_exec.c
parentf94666c7c83e4837f96a2acc8f263ebb5d2b7bd1 (diff)
DRW: Rename DRW_shgroup_uniform_vec4_array_copy to mat4_copy
This function was not used for anything other than mat4. This was because of a limitation of the DRW module/ This makes it cleaner for the GLSL and also less tempting to use it for other unconventional purpose.
Diffstat (limited to 'source/blender/draw/intern/draw_manager_exec.c')
-rw-r--r--source/blender/draw/intern/draw_manager_exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c
index fbff3b29d24..2c5b02f88a9 100644
--- a/source/blender/draw/intern/draw_manager_exec.c
+++ b/source/blender/draw/intern/draw_manager_exec.c
@@ -613,8 +613,7 @@ static void draw_update_uniforms(DRWShadingGroup *shgroup,
memcpy(&mat4_stack[array_index], uni->fvalue, sizeof(float) * uni->length);
/* Flush array data to shader. */
if (array_index <= 0) {
- GPU_shader_uniform_vector(
- shgroup->shader, uni->location, uni->length, uni->arraysize, mat4_stack);
+ GPU_shader_uniform_vector(shgroup->shader, uni->location, 16, 1, mat4_stack);
array_uniform_loc = -1;
}
continue;