From 98da9afb8fcadca2a015a5aa44df2f37ada84f52 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 1 Dec 2014 14:50:00 +0100 Subject: 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. --- video/out/gl_video.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'video') 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); -- cgit v1.2.3