diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-20 17:16:10 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-20 17:16:10 +0300 |
commit | cdf0df10a6dd812918cabcfc2a702c9cf4a14fef (patch) | |
tree | 1c25ff42f4bda3813e9b190f34cff7eac05ce4aa /source/blender/draw | |
parent | 8a9be95cfb16234c29b37f8f4e8ec6db1ce5fee6 (diff) |
DRW: Fix bound_ubo_slots allocation size.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index dbcfa02c555..db59c083b42 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -452,7 +452,7 @@ static void drw_viewport_var_init(void) DST.RST.bound_ubos = MEM_callocN(sizeof(GPUUniformBuffer *) * GPU_max_ubo_binds(), "Bound GPUUniformBuffer refs"); } if (DST.RST.bound_ubo_slots == NULL) { - DST.RST.bound_ubo_slots = MEM_callocN(sizeof(char) * GPU_max_textures(), "Bound Ubo Slots"); + DST.RST.bound_ubo_slots = MEM_callocN(sizeof(char) * GPU_max_ubo_binds(), "Bound Ubo Slots"); } if (view_ubo == NULL) { |