diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-07-15 12:24:18 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-07-15 12:24:38 +0300 |
commit | 576963d7c1e46c0fb59ee4c8741098cf690d0f27 (patch) | |
tree | 29a8da5fd105c7f23f1162b2acc962ec04d3d735 /source/blender/blenlib/intern/storage.c | |
parent | 872025c4e5825f155ee599a687be13078504c23c (diff) |
Fix crash running GPU shader.format_calc() with attributes like gl_VertexID
When using opengl attributes such as gl_VertexID in a shader its
location is set to -1. This location was used without checking in an
attribute array. This fails big time when called from python. For
example `print(shader.format_calc())` made python crash immediately.
this fixes https://github.com/JacquesLucke/animation_nodes/issues/1141
Reviewed By: fclem, brecht
Differential Revision: https://developer.blender.org/D5231
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
0 files changed, 0 insertions, 0 deletions