diff options
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index e2b64968ce..5923a697e9 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -573,7 +573,7 @@ static void update_uniforms(struct gl_video *p, GLuint program) } loc = gl->GetUniformLocation(program, "transform"); - if (loc >= 0) { + if (loc >= 0 && p->vp_w > 0 && p->vp_h > 0) { float matrix[3][3]; matrix_ortho2d(matrix, 0, p->vp_w, p->vp_h, 0); gl->UniformMatrix3fv(loc, 1, GL_FALSE, &matrix[0][0]); |