diff options
-rw-r--r-- | source/blender/draw/intern/DRW_gpu_wrapper.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/DRW_gpu_wrapper.hh b/source/blender/draw/intern/DRW_gpu_wrapper.hh index 3be50d471e2..8bcfec41c36 100644 --- a/source/blender/draw/intern/DRW_gpu_wrapper.hh +++ b/source/blender/draw/intern/DRW_gpu_wrapper.hh @@ -318,7 +318,7 @@ template< /** Type of the values stored in this uniform buffer. */ typename T, /** The number of values that can be stored in this storage buffer at creation. */ - int64_t len = 16u / sizeof(T), + int64_t len = max_ii(1u, 512u / sizeof(T)), /** True if created on device and no memory host memory is allocated. */ bool device_only = false> class StorageArrayBuffer : public detail::StorageCommon<T, len, device_only> { @@ -372,7 +372,7 @@ template< /** Type of the values stored in this uniform buffer. */ typename T, /** The number of values that can be stored in this storage buffer at creation. */ - int64_t len = 16u / sizeof(T)> + int64_t len = max_ii(1u, 512u / sizeof(T))> class StorageVectorBuffer : public StorageArrayBuffer<T, len, false> { private: /* Number of items, not the allocated length. */ |