Fix animation player drawing wrong size

This commit is contained in:
Campbell Barton 2018-06-19 18:03:08 +02:00
parent 61af6b83e6
commit 5b227c420b
Notes: blender-bot 2023-02-14 05:43:11 +01:00
Referenced by issue #55521, broken play render animation
1 changed files with 2 additions and 1 deletions

View File

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