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>2022-11-13 20:02:17 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-11-13 20:02:17 +0300
commitce9fcb15a33663527e3fc1a533de356428d3445f (patch)
tree5c794d5e15bc242004c61081d88d10c51f1e95f8 /source/blender/draw/intern/draw_pass.hh
parentbd622aef3c2f250719056dd5fc105136aa800e78 (diff)
DRW: Manager: Fix `ClearMulti` breaking compilation on Mac
The error was: `draw_pass.hh:1055:16: error: call to implicitly-deleted default constructor of 'blender::draw::command::Undetermined [3]'
Diffstat (limited to 'source/blender/draw/intern/draw_pass.hh')
-rw-r--r--source/blender/draw/intern/draw_pass.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_pass.hh b/source/blender/draw/intern/draw_pass.hh
index 10cc03bdf11..51b30674359 100644
--- a/source/blender/draw/intern/draw_pass.hh
+++ b/source/blender/draw/intern/draw_pass.hh
@@ -480,7 +480,7 @@ inline void PassBase<T>::clear(eGPUFrameBufferBits planes,
template<class T> inline void PassBase<T>::clear_multi(Span<float4> colors)
{
- create_command(command::Type::ClearMulti).clear_multi = {colors};
+ create_command(command::Type::ClearMulti).clear_multi = {colors.data(), colors.size()};
}
template<class T> inline GPUBatch *PassBase<T>::procedural_batch_get(GPUPrimType primitive)