Do framebuffer download color conversion using the CPU on old nVidias.

May fix issue 228 in the native project.
This commit is contained in:
Henrik Rydgard 2015-06-13 11:27:06 +02:00
parent 00e57b1483
commit 159c8baeef

View File

@ -1140,12 +1140,14 @@ inline bool FramebufferManager::ShouldDownloadUsingCPU(const VirtualFramebuffer
// Some cards or drivers seem to always dither when downloading a framebuffer to 16-bit.
// This causes glitches in games that expect the exact values.
// It has not been experienced on NVIDIA cards, so those are left using the GPU (which is faster.)
if (g_Config.iRenderingMode == FB_BUFFERED_MODE && gl_extensions.gpuVendor != GPU_VENDOR_NVIDIA) {
useCPU = true;
if (g_Config.iRenderingMode == FB_BUFFERED_MODE) {
if (gl_extensions.gpuVendor != GPU_VENDOR_NVIDIA || gl_extensions.ver[0] < 3) {
useCPU = true;
}
}
return useCPU;
#else
return true;
return true;
#endif
}