mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-24 12:10:18 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user