[Bf-blender-cvs] [0899b4bb3f9] blender2.8: Fix building without clay engine

Campbell Barton noreply at git.blender.org
Thu Apr 6 07:17:07 CEST 2017


Commit: 0899b4bb3f9574a593a54f4a511fba6662844c16
Author: Campbell Barton
Date:   Thu Apr 6 15:16:23 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB0899b4bb3f9574a593a54f4a511fba6662844c16

Fix building without clay engine

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

M	source/blender/draw/intern/draw_manager.c

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

diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index d2d98f15fa9..276ccd980a0 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -653,6 +653,8 @@ void DRW_shgroup_uniform_mat4(DRWShadingGroup *shgroup, const char *name, const
 	DRW_interface_uniform(shgroup, name, DRW_UNIFORM_MAT4, value, 16, 1, 0);
 }
 
+#ifdef WITH_CLAY_ENGINE
+
 /* Creates a VBO containing OGL primitives for all DRWDynamicCall */
 static void shgroup_dynamic_batch(DRWShadingGroup *shgroup)
 {
@@ -763,6 +765,7 @@ static void shgroup_dynamic_batch_from_calls(DRWShadingGroup *shgroup)
 		shgroup_dynamic_batch(shgroup);
 	}
 }
+#endif  /* WITH_CLAY_ENGINE */
 
 /* ***************************************** PASSES ******************************************/
 
@@ -1170,12 +1173,14 @@ void DRW_state_reset(void)
 	set_state(state, true);
 }
 
-#else
-void DRW_draw_pass(DRWPass *UNUSED(pass))
-{
-}
+#else  /* !WITH_CLAY_ENGINE */
 
-#endif
+void DRW_draw_pass(DRWPass *UNUSED(pass)) {}
+void DRW_draw_callbacks_pre_scene(void) {}
+void DRW_draw_callbacks_post_scene(void) {}
+void DRW_state_reset(void) {}
+
+#endif  /* WITH_CLAY_ENGINE */
 
 /* ****************************************** Settings ******************************************/




More information about the Bf-blender-cvs mailing list