# HG changeset patch # User reimar # Date 1370772581 0 # Node ID d05b680f78d68adeea114f7a6fdce1115c90d213 # Parent a19b7477403327080e6cb3f8c1cf556c9587d318 Set GL_UNPACK_ROW_LENGTH even for GLES. This avoids issues with implementations like MESA that incorrectly do not ignore it. diff -r a19b74774033 -r d05b680f78d6 libvo/gl_common.c --- a/libvo/gl_common.c Sun Jun 09 09:46:20 2013 +0000 +++ b/libvo/gl_common.c Sun Jun 09 10:09:41 2013 +0000 @@ -787,11 +787,10 @@ if (!mpglBegin) { // we have to copy line-by-line for GLES if (stride != w*bpp) slice = 1; - } else { - // this is not always correct, but should work for MPlayer - glAdjustAlignment(stride); - mpglPixelStorei(GL_UNPACK_ROW_LENGTH, stride / bpp); } + // this is not always correct, but should work for MPlayer + glAdjustAlignment(stride); + mpglPixelStorei(GL_UNPACK_ROW_LENGTH, stride / bpp); if (slice < 0) { mpglPixelStorei(GL_UNPACK_CLIENT_STORAGE_APPLE, GL_TRUE); mpglTexImage2D(target, 0, GL_RGB, w, h, 0, format, type, data);