diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 8807b65005..4307dcde47 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -2808,6 +2808,12 @@ void gl_video_uninit(struct gl_video *p) } void gl_video_set_gl_state(struct gl_video *p) +{ + // This resets certain important state to defaults. + gl_video_unset_gl_state(p); +} + +void gl_video_unset_gl_state(struct gl_video *p) { GL *gl = p->gl; @@ -2817,11 +2823,6 @@ void gl_video_set_gl_state(struct gl_video *p) gl->PixelStorei(GL_UNPACK_ALIGNMENT, 4); } -void gl_video_unset_gl_state(struct gl_video *p) -{ - /* nop */ -} - void gl_video_reset(struct gl_video *p) { gl_video_reset_surfaces(p);