From 7592ec35d343dbb8a60efdc30460bfb5bbb3140a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sat, 1 Apr 2023 17:16:54 +0200 Subject: [PATCH] GPU: Fix compilation with option WITH_GPU_BUILDTIME_SHADER_BUILDER Breakage caused by 84c93f3a069356fb93b09677e4defe9ccf113606 --- source/blender/gpu/intern/gpu_shader_builder_stubs.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/blender/gpu/intern/gpu_shader_builder_stubs.cc b/source/blender/gpu/intern/gpu_shader_builder_stubs.cc index 09a439ad10c..f31b73bcd60 100644 --- a/source/blender/gpu/intern/gpu_shader_builder_stubs.cc +++ b/source/blender/gpu/intern/gpu_shader_builder_stubs.cc @@ -164,30 +164,30 @@ void BKE_material_defaults_free_gpu() /** \name Stubs of BKE_customdata.h * \{ */ -int CustomData_get_offset(const struct CustomData * /*data*/, int /*type*/) +int CustomData_get_offset(const struct CustomData * /*data*/, eCustomDataType /*type*/) { BLI_assert_unreachable(); return 0; } int CustomData_get_named_layer_index(const struct CustomData * /*data*/, - int /*type*/, + eCustomDataType /*type*/, const char * /*name*/) { return -1; } -int CustomData_get_active_layer_index(const struct CustomData * /*data*/, int /*type*/) +int CustomData_get_active_layer_index(const struct CustomData * /*data*/, eCustomDataType /*type*/) { return -1; } -int CustomData_get_render_layer_index(const struct CustomData * /*data*/, int /*type*/) +int CustomData_get_render_layer_index(const struct CustomData * /*data*/, eCustomDataType /*type*/) { return -1; } -bool CustomData_has_layer(const struct CustomData * /*data*/, int /*type*/) +bool CustomData_has_layer(const struct CustomData * /*data*/, eCustomDataType /*type*/) { return false; }