summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 1fbea4fa8c..e8dd57bc2f 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -3492,8 +3492,6 @@ static void init_gl(struct gl_video *p)
debug_check_gl(p, "before init_gl");
- gl_video_set_gl_state(p);
-
p->upload_timer = gl_timer_create(gl);
p->blit_timer = gl_timer_create(gl);
@@ -3540,22 +3538,6 @@ void gl_video_uninit(struct gl_video *p)
talloc_free(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;
-
- gl->ActiveTexture(GL_TEXTURE0);
- if (gl->mpgl_caps & MPGL_CAP_ROW_LENGTH)
- gl->PixelStorei(GL_UNPACK_ROW_LENGTH, 0);
- gl->PixelStorei(GL_UNPACK_ALIGNMENT, 4);
-}
-
void gl_video_reset(struct gl_video *p)
{
gl_video_reset_surfaces(p);