Commit: 887ec48df9ba8f795239d16f29f49e180ef7058a
Author: Jeroen Bakker
Date:   Wed Jan 5 15:04:09 2022 +0100
Branches: tmp-gpu-shader-descriptor-2
https://developer.blender.org/rB887ec48df9ba8f795239d16f29f49e180ef7058a

Enable compilation for gpu_shader_3D_flat_color variants.

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

M       source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh

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

diff --git a/source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh 
b/source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh
index ed821aae459..c22e89227ac 100644
--- a/source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh
+++ b/source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh
@@ -10,8 +10,10 @@ GPU_SHADER_CREATE_INFO(gpu_shader_3D_flat_color)
     .fragment_out(0, Type::VEC4, "fragColor")
     .push_constant(1, Type::BOOL, "srgbTarget")
     .vertex_source("gpu_shader_3D_flat_color_vert.glsl")
-    .fragment_source("gpu_shader_flat_color_frag.glsl");
+    .fragment_source("gpu_shader_flat_color_frag.glsl")
+    .do_static_compilation(true);
 
 GPU_SHADER_CREATE_INFO(gpu_shader_3D_flat_color_clipped)
     .additional_info("gpu_shader_3D_flat_color")
-    .additional_info("gpu_clip_planes");
+    .additional_info("gpu_clip_planes")
+    .do_static_compilation(true);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to