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:
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/opengl/gl_shader_interface.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_shader_interface.cc b/source/blender/gpu/opengl/gl_shader_interface.cc
index d9291cd642a..c5c8e2397d1 100644
--- a/source/blender/gpu/opengl/gl_shader_interface.cc
+++ b/source/blender/gpu/opengl/gl_shader_interface.cc
@@ -334,7 +334,7 @@ GLShaderInterface::GLShaderInterface(const UniformBuiltinStructType *type_info,
for (int32_t u_int = 0; u_int < GPU_NUM_UNIFORMS; u_int++) {
GPUUniformBuiltin u = static_cast<GPUUniformBuiltin>(u_int);
const ShaderInput *block = this->uniform_get(builtin_uniform_name(u));
- builtins_[u] = (block != nullptr) ? block->binding : -1;
+ builtins_[u] = (block != nullptr) ? block->location : -1;
}
/* Builtin Uniforms Blocks */