[Bf-blender-cvs] [547e962bf6c] blender2.8: 3D View: 3D Cursor was not restoring GL state

Campbell Barton noreply at git.blender.org
Sun Jun 17 14:45:16 CEST 2018


Commit: 547e962bf6c12cebf2cd4106ba50f47f9bdf66f9
Author: Campbell Barton
Date:   Sun Jun 17 14:43:31 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB547e962bf6c12cebf2cd4106ba50f47f9bdf66f9

3D View: 3D Cursor was not restoring GL state

Caused camera frame to be double width.

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

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

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

diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index 4bf2e65ce6f..8d0b07e189e 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -732,6 +732,9 @@ void DRW_draw_cursor(void)
 			GWN_batch_program_set(cursor_batch, GPU_shader_get_program(shader), GPU_shader_get_interface(shader));
 
 			GWN_batch_draw(cursor_batch);
+
+			glDisable(GL_BLEND);
+			glDisable(GL_LINE_SMOOTH);
 		}
 	}
 }



More information about the Bf-blender-cvs mailing list