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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to