summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-01 14:50:00 +0100
committerwm4 <wm4@nowhere>2014-12-01 14:50:00 +0100
commit98da9afb8fcadca2a015a5aa44df2f37ada84f52 (patch)
tree4429e662132372f6095a86bc84275a48f8d08128 /video
parentb57ab4bb3bea38c40b5c13bd782c60541e812dd2 (diff)
downloadmpv-98da9afb8fcadca2a015a5aa44df2f37ada84f52.tar.bz2
mpv-98da9afb8fcadca2a015a5aa44df2f37ada84f52.tar.xz
vo_opengl: remove redundant GL state initialization
All of these are already the defaults. One exception is glDepthMask(), which is enabled by default. But if the framebuffer has no depth buffer anyway, it shouldn't make a difference.
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_video.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index a867c1a080..64356473be 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -2167,10 +2167,6 @@ static int init_gl(struct gl_video *p)
check_gl_features(p);
gl->Disable(GL_DITHER);
- gl->Disable(GL_BLEND);
- gl->Disable(GL_DEPTH_TEST);
- gl->DepthMask(GL_FALSE);
- gl->Disable(GL_CULL_FACE);
gl->GenBuffers(1, &p->vertex_buffer);
gl->BindBuffer(GL_ARRAY_BUFFER, p->vertex_buffer);