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.
This commit is contained in:
wm4 2014-12-01 14:50:00 +01:00
parent b57ab4bb3b
commit 98da9afb8f
1 changed files with 0 additions and 4 deletions

View File

@ -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);