vo_opengl: don't reset unused GL_PACK_... state

This commit is contained in:
wm4 2015-01-22 18:54:05 +01:00
parent 5bb24980ae
commit a8f565008b
1 changed files with 1 additions and 4 deletions

View File

@ -2315,11 +2315,8 @@ void gl_video_set_gl_state(struct gl_video *p)
struct m_color c = p->opts.background;
gl->ClearColor(c.r / 255.0, c.g / 255.0, c.b / 255.0, c.a / 255.0);
gl->ActiveTexture(GL_TEXTURE0);
if (gl->mpgl_caps & MPGL_CAP_ROW_LENGTH) {
gl->PixelStorei(GL_PACK_ROW_LENGTH, 0);
if (gl->mpgl_caps & MPGL_CAP_ROW_LENGTH)
gl->PixelStorei(GL_UNPACK_ROW_LENGTH, 0);
}
gl->PixelStorei(GL_PACK_ALIGNMENT, 4);
gl->PixelStorei(GL_UNPACK_ALIGNMENT, 4);
if (!gl->BindVertexArray) {