diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-15 03:01:52 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-15 03:01:52 +0300 |
commit | 3d1e97825712bdaadf4038ba99fa7a0a87f7294c (patch) | |
tree | 9875b91090d98ba4d4745cc13180216c45b32d5c /source/blender/gpu/opengl | |
parent | 89b47c121449c1e2e54470e71c7146222311951d (diff) | |
parent | 1f7f7ca14e50be457810efb109a03d98f78726fc (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r-- | source/blender/gpu/opengl/gl_shader_interface.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_shader_interface.cc b/source/blender/gpu/opengl/gl_shader_interface.cc index 65235cfa88b..f6a7eee80c3 100644 --- a/source/blender/gpu/opengl/gl_shader_interface.cc +++ b/source/blender/gpu/opengl/gl_shader_interface.cc @@ -397,7 +397,9 @@ GLShaderInterface::GLShaderInterface(GLuint program, const shader::ShaderCreateI else { input->location = input->binding = attr.index; } - enabled_attr_mask_ |= (1 << input->location); + if (input->location != -1) { + enabled_attr_mask_ |= (1 << input->location); + } input++; } |