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:
authorClément Foucault <foucault.clem@gmail.com>2017-02-13 14:41:05 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-02-14 02:35:25 +0300
commit22df54acb62084cf8a8409203e8656f176c28a29 (patch)
treedfb71c813c6daa95f5c7a5093c58b3e6ca250b97 /source/blender/gpu
parent0790976b6c37b4d6d688b196093358a0369a2ee0 (diff)
OpenGL immediate mode: drawarmature.c (cont)
All (except for stick and wire) are now rendered using batch or immediate API. Using simple front facing lighting for now, waiting for gpu_basic_shader.c to be recoded.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/gawain/batch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/gpu/gawain/batch.c b/source/blender/gpu/gawain/batch.c
index 55ccd94a555..81e694cc9b8 100644
--- a/source/blender/gpu/gawain/batch.c
+++ b/source/blender/gpu/gawain/batch.c
@@ -90,9 +90,7 @@ static void Batch_update_program_bindings(Batch* batch)
const GLint loc = glGetAttribLocation(batch->program, a->name);
-#if TRUST_NO_ONE
- assert(loc != -1);
-#endif
+ if (loc == -1) continue;
glEnableVertexAttribArray(loc);