diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-19 19:03:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-19 19:03:08 +0300 |
commit | 5b227c420b003672b2d4616f1b796e6ad6806708 (patch) | |
tree | 40d7b17d6cf566bf072bac42b660198b752ff2a8 /source/blender/windowmanager | |
parent | 61af6b83e6757c692447cc13c01a7ede21a9756f (diff) |
Fix animation player drawing wrong size
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_playanim.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |