diff options
author | Andres Gomez <[email protected]> | 2017-02-22 17:03:22 +0200 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2017-03-29 19:14:25 +0300 |
commit | dc01cb9c5f38d6cdbb583ba70db5e51cc8901236 (patch) | |
tree | f475aac637b4605928dfa46efb5adc641c1775bd /src/vulkan | |
parent | fb00f22b835f76b88c996e479fc583e86e4d6006 (diff) |
glsl: on UBO/SSBOs link error reset the number of active blocks to 0
While it's legal to have an active blocks count > 0 on link failure.
Unless we actually assign memory for the blocks array we can end up
segfaulting in calls such as glUniformBlockBinding().
To avoid having to NULL check these api calls we simply reset the
block count to 0 if the array was not created.
Signed-off-by: Andres Gomez <[email protected]>
Cc: Timothy Arceri <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
(cherry picked from commit bf15b2b515d5f37fc67fea77dea9d2fbc1dc8bf1)
Diffstat (limited to 'src/vulkan')
0 files changed, 0 insertions, 0 deletions