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:
authorJeroen Bakker <jeroen@blender.org>2021-03-19 16:56:07 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:47 +0300
commitc905dd24b694eee0aa29fc95abd50cec62930c23 (patch)
tree1f3c44fa6cf76ccaab9bc4f5cd27dad32776bf97 /source/blender/compositor/operations/COM_GlareStreaksOperation.cc
parentb9447ab053ffe660b7eb1ef8f60bf436a1cec600 (diff)
Cleanup: Replace ptr with ref (COM_MemoryBuffer).
Diffstat (limited to 'source/blender/compositor/operations/COM_GlareStreaksOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_GlareStreaksOperation.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_GlareStreaksOperation.cc b/source/blender/compositor/operations/COM_GlareStreaksOperation.cc
index e2d8c7ff68e..f48692fec04 100644
--- a/source/blender/compositor/operations/COM_GlareStreaksOperation.cc
+++ b/source/blender/compositor/operations/COM_GlareStreaksOperation.cc
@@ -34,7 +34,7 @@ void GlareStreaksOperation::generateGlare(float *data,
bool breaked = false;
MemoryBuffer *tsrc = inputTile->duplicate();
- MemoryBuffer *tdst = new MemoryBuffer(DataType::Color, inputTile->getRect());
+ MemoryBuffer *tdst = new MemoryBuffer(DataType::Color, *inputTile->getRect());
tdst->clear();
memset(data, 0, size4 * sizeof(float));