diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-04-13 01:55:32 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-04-13 08:07:51 +0300 |
commit | b02786ae6be71d3b7581b672b7896005f68c8b63 (patch) | |
tree | 15e094e9d7f9b3d442f07f76e3dd048ba8a1ecd4 /source/blender/gpu/intern/gpu_shader.c | |
parent | 6bfb9b7b5f164b303433d729d1cbe38f1ba44366 (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.c | 2 |
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) |