Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-03-20 17:16:10 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-03-20 17:16:10 +0300
commitcdf0df10a6dd812918cabcfc2a702c9cf4a14fef (patch)
tree1c25ff42f4bda3813e9b190f34cff7eac05ce4aa /source/blender/draw/intern
parent8a9be95cfb16234c29b37f8f4e8ec6db1ce5fee6 (diff)
DRW: Fix bound_ubo_slots allocation size.
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r--source/blender/draw/intern/draw_manager.c2
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) {