Fix animation player drawing wrong size
This commit is contained in:
parent
61af6b83e6
commit
5b227c420b
Notes:
blender-bot
2023-02-14 05:43:11 +01:00
Referenced by issue #55521, broken play render animation
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue