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:
authorOmar Emara <mail@OmarEmara.dev>2022-10-11 17:22:14 +0300
committerOmar Emara <mail@OmarEmara.dev>2022-10-11 17:22:14 +0300
commit009acfa477bbb52560b05006d9b950e014e91d9b (patch)
tree8550dbd630bddefcfffb40e0afec4fc07c78f0c5
parent37461b8bdd7d298a64c72a921936e2abeaca491a (diff)
Cleanup: Add missing include for parallel reduction
The parallel reduction file didn't include its own header, which can yield "no previous declaration" warnings. This patch includes the header to fix the warning.
-rw-r--r--source/blender/compositor/realtime_compositor/CMakeLists.txt1
-rw-r--r--source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc2
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/compositor/realtime_compositor/CMakeLists.txt b/source/blender/compositor/realtime_compositor/CMakeLists.txt
index 5473a253241..90cbe0988ad 100644
--- a/source/blender/compositor/realtime_compositor/CMakeLists.txt
+++ b/source/blender/compositor/realtime_compositor/CMakeLists.txt
@@ -2,6 +2,7 @@
set(INC
.
+ ./algorithms
../../blenkernel
../../blenlib
../../gpu
diff --git a/source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc b/source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc
index 7b571f381c6..3266ccd14eb 100644
--- a/source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc
+++ b/source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc
@@ -12,6 +12,8 @@
#include "COM_context.hh"
#include "COM_utilities.hh"
+#include "COM_algorithm_parallel_reduction.hh"
+
namespace blender::realtime_compositor {
/* Reduces the given texture into a single value and returns it. The return value should be freed