[Bf-blender-cvs] [5b227c420b0] blender2.8: Fix animation player drawing wrong size

Campbell Barton noreply at git.blender.org
Tue Jun 19 18:03:30 CEST 2018


Commit: 5b227c420b003672b2d4616f1b796e6ad6806708
Author: Campbell Barton
Date:   Tue Jun 19 18:03:08 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB5b227c420b003672b2d4616f1b796e6ad6806708

Fix animation player drawing wrong size

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

M	source/blender/windowmanager/intern/wm_playanim.c

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

diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c
index 835c4c14207..30b1d6237c4 100644
--- a/source/blender/windowmanager/intern/wm_playanim.c
+++ b/source/blender/windowmanager/intern/wm_playanim.c
@@ -197,7 +197,8 @@ static void playanim_window_get_size(int *r_width, int *r_height)
 static void playanim_gl_matrix(void)
 {
 	/* unified matrix, note it affects offset for drawing */
-	gpuOrtho2D(0.0f, 1.0f, 0.0f, 1.0f);
+	/* note! cannot use gpuOrtho2D here because shader ignores. */
+	gpuOrtho(0.0f, 1.0f, 0.0f, 1.0f, -1.0, 1.0f);
 }
 
 /* implementation */



More information about the Bf-blender-cvs mailing list