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:
authorHans Goudey <h.goudey@me.com>2022-02-19 00:17:01 +0300
committerHans Goudey <h.goudey@me.com>2022-02-19 00:17:01 +0300
commit7f68185d347b01a75836eb7372181a1196f546aa (patch)
tree935a55de98502bb17fe765bf4db338451333ed22 /source/blender/gpu/opengl
parentd9d97db018d28f4c1ce7543ba275a9809d56294a (diff)
parent3cebfadb27eb4056d28211708158f9ad8a7459b7 (diff)
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r--source/blender/gpu/opengl/gl_vertex_array.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_vertex_array.cc b/source/blender/gpu/opengl/gl_vertex_array.cc
index 88b69eb5b62..04f60f10d41 100644
--- a/source/blender/gpu/opengl/gl_vertex_array.cc
+++ b/source/blender/gpu/opengl/gl_vertex_array.cc
@@ -54,7 +54,7 @@ static uint16_t vbo_bind(const ShaderInterface *interface,
const char *name = GPU_vertformat_attr_name_get(format, a, n_idx);
const ShaderInput *input = interface->attr_get(name);
- if (input == nullptr) {
+ if (input == nullptr || input->location == -1) {
continue;
}