Attempt workaround for #8610

This commit is contained in:
Henrik Rydgard 2016-02-28 11:06:49 +01:00
parent de932b5efc
commit 5f761c346b

View File

@ -1495,7 +1495,7 @@ static void LogReadPixelsError(GLenum error) {
#endif
static void SafeGLReadPixels(GLint x, GLint y, GLsizei w, GLsizei h, GLenum fmt, GLenum type, void *pixels) {
if (!gl_extensions.IsGLES || gl_extensions.GLES3) {
if (!gl_extensions.IsGLES || (gl_extensions.GLES3 && gl_extensions.gpuVendor != GPU_VENDOR_NVIDIA)) {
// Some drivers seem to require we specify this. See #8254.
glPixelStorei(GL_PACK_ROW_LENGTH, w);
}