[Bf-blender-cvs] [798d2cadc30] master: DRW: Remove unecessary state changes

Clément Foucault noreply at git.blender.org
Mon Mar 4 01:30:07 CET 2019


Commit: 798d2cadc307c8b53d111f86c66ace835dd4db49
Author: Clément Foucault
Date:   Mon Mar 4 01:29:29 2019 +0100
Branches: master
https://developer.blender.org/rB798d2cadc307c8b53d111f86c66ace835dd4db49

DRW: Remove unecessary state changes

The TODO is old and the issue does not seems to appear anymore.

If bugs emerge from this commit it's most likely to be a bad usage of the
API.

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

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

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

diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c
index e558552fc4d..352ce913fb7 100644
--- a/source/blender/draw/intern/draw_manager_exec.c
+++ b/source/blender/draw/intern/draw_manager_exec.c
@@ -1281,9 +1281,6 @@ static void draw_shgroup(DRWShadingGroup *shgroup, DRWState pass_state)
 	if (use_tfeedback) {
 		GPU_shader_transform_feedback_disable(shgroup->shader);
 	}
-
-	/* TODO: remove, (currently causes alpha issue with sculpt, need to investigate) */
-	DRW_state_reset();
 }
 
 static void drw_update_view(void)



More information about the Bf-blender-cvs mailing list