[Bf-blender-cvs] [077ba5ac386] master: ShaderBuilder: Fix compilation error due to recent changes.

Jeroen Bakker noreply at git.blender.org
Tue Sep 6 08:18:52 CEST 2022


Commit: 077ba5ac386f3cc75a67e01cdd75239b76c34de5
Author: Jeroen Bakker
Date:   Tue Sep 6 08:18:04 2022 +0200
Branches: master
https://developer.blender.org/rB077ba5ac386f3cc75a67e01cdd75239b76c34de5

ShaderBuilder: Fix compilation error due to recent changes.

Added CustomData_get_layer to stub.

===================================================================

M	source/blender/gpu/intern/gpu_shader_builder_stubs.cc

===================================================================

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;
+}
+
 /** \} */
 
 /* -------------------------------------------------------------------- */



More information about the Bf-blender-cvs mailing list