diff options
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/video.c | 18 | ||||
-rw-r--r-- | video/out/opengl/video.h | 2 |
2 files changed, 0 insertions, 20 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); diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h index ea9f7b0746..8b6ca6e98f 100644 --- a/video/out/opengl/video.h +++ b/video/out/opengl/video.h @@ -176,8 +176,6 @@ bool gl_video_icc_auto_enabled(struct gl_video *p); bool gl_video_gamma_auto_enabled(struct gl_video *p); struct mp_colorspace gl_video_get_output_colorspace(struct gl_video *p); -void gl_video_set_gl_state(struct gl_video *p); -void gl_video_unset_gl_state(struct gl_video *p); void gl_video_reset(struct gl_video *p); bool gl_video_showing_interpolated_frame(struct gl_video *p); |