From 5f761c346b2c4e7c6b6cd0483af3a6ee771fadbd Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 28 Feb 2016 11:06:49 +0100 Subject: [PATCH] Attempt workaround for #8610 --- GPU/GLES/Framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 168cca2cfd..6ef3bf0ffe 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -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); }