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>2022-09-06 09:18:04 +0300
committerJeroen Bakker <jeroen@blender.org>2022-09-06 09:18:04 +0300
commit077ba5ac386f3cc75a67e01cdd75239b76c34de5 (patch)
treeb4cbbc25b91b4f2fddf477eb6866aa0e99353e5d /source/blender
parent32d19f7317e9f2d726230a67ba9fed623fee337e (diff)
ShaderBuilder: Fix compilation error due to recent changes.
Added CustomData_get_layer to stub.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/gpu/intern/gpu_shader_builder_stubs.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_builder_stubs.cc b/source/blender/gpu/intern/gpu_shader_builder_stubs.cc
index 575f98bf428..e15054bd045 100644
--- a/source/blender/gpu/intern/gpu_shader_builder_stubs.cc
+++ b/source/blender/gpu/intern/gpu_shader_builder_stubs.cc
@@ -232,6 +232,11 @@ void *CustomData_get_layer_named(const struct CustomData *UNUSED(data),
return nullptr;
}
+void *CustomData_get_layer(const struct CustomData *UNUSED(data), int UNUSED(type))
+{
+ return nullptr;
+}
+
/** \} */
/* -------------------------------------------------------------------- */