Fix image empties not drawing
authorLuca Rood <dev@lucarood.com>
Mon, 10 Jul 2017 09:36:16 +0000 (11:36 +0200)
committerLuca Rood <dev@lucarood.com>
Mon, 10 Jul 2017 09:39:08 +0000 (11:39 +0200)
commitd33cacf7e46deb12713e058fff4c1096f8113469
treeeff3e9ffd3975378ce53c7002ceaf7340b963ed5
parent7d5e9285b559cc69cc722913ae4adf1e247943eb
Fix image empties not drawing

A pointer to the uniform data for the empty drawing was being freed
before the actual draw call, which invalidates the uniform.

This makes the data only be freed after drawing.
source/blender/draw/modes/object_mode.c