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:
authorMike Erwin <significant.bit@gmail.com>2017-04-13 01:55:32 +0300
committerMike Erwin <significant.bit@gmail.com>2017-04-13 08:07:51 +0300
commitb02786ae6be71d3b7581b672b7896005f68c8b63 (patch)
tree15e094e9d7f9b3d442f07f76e3dd048ba8a1ecd4 /source/blender/gpu/intern/gpu_shader.c
parent6bfb9b7b5f164b303433d729d1cbe38f1ba44366 (diff)
Gawain: use ShaderInterface to manage uniforms
This eliminates tons of glGetUniformLocation calls from the drawing loop. Vast majority of code can keep making the same function calls. They're just faster now! - Batch_Uniform* - immUniform* - gpuBindMatrices - and others
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader.c')
-rw-r--r--source/blender/gpu/intern/gpu_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c
index 7ea148e15d6..fa63dff1458 100644
--- a/source/blender/gpu/intern/gpu_shader.c
+++ b/source/blender/gpu/intern/gpu_shader.c
@@ -490,7 +490,7 @@ void GPU_shader_bind(GPUShader *shader)
BLI_assert(shader && shader->program);
glUseProgram(shader->program);
- gpuBindMatrices(shader->program);
+ gpuBindMatrices(shader->interface);
}
void GPU_shader_unbind(void)