diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-13 14:41:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-02-14 02:35:25 +0300 |
commit | 22df54acb62084cf8a8409203e8656f176c28a29 (patch) | |
tree | dfb71c813c6daa95f5c7a5093c58b3e6ca250b97 /source/blender/gpu | |
parent | 0790976b6c37b4d6d688b196093358a0369a2ee0 (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.c | 4 |
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); |