[Bf-blender-cvs] [d0d282bf2f8] blender2.8: Armature: Add multisampling to posemode.

Clément Foucault noreply at git.blender.org
Wed May 2 20:54:41 CEST 2018


Commit: d0d282bf2f8f7cf08d34778bffd628cca615445b
Author: Clément Foucault
Date:   Fri Apr 27 16:30:03 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd0d282bf2f8f7cf08d34778bffd628cca615445b

Armature: Add multisampling to posemode.

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

M	source/blender/draw/modes/pose_mode.c

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

diff --git a/source/blender/draw/modes/pose_mode.c b/source/blender/draw/modes/pose_mode.c
index 12c78e85500..d764ce93bae 100644
--- a/source/blender/draw/modes/pose_mode.c
+++ b/source/blender/draw/modes/pose_mode.c
@@ -166,12 +166,18 @@ bool DRW_pose_mode_armature(Object *ob, Object *active_ob)
 static void POSE_draw_scene(void *vedata)
 {
 	POSE_PassList *psl = ((POSE_Data *)vedata)->psl;
+	DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get();
+	DefaultTextureList *dtxl = DRW_viewport_texture_list_get();
+
+	MULTISAMPLE_SYNC_ENABLE(dfbl, dtxl)
 
 	DRW_draw_pass(psl->bone_envelope);
 	DRW_draw_pass(psl->bone_outline);
 	DRW_draw_pass(psl->bone_wire);
 	DRW_draw_pass(psl->bone_solid);
 	DRW_draw_pass(psl->relationship);
+
+	MULTISAMPLE_SYNC_DISABLE(dfbl, dtxl)
 }
 
 /* Create collection settings here.



More information about the Bf-blender-cvs mailing list