From 390f0d79fc17c2ea233257d17dad4e618db5d1e4 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 22 Jun 2013 10:16:38 -0700 Subject: [PATCH] Add a copy path to ConvertColors RGBA8888. It's not actually ever called this way, but I'd rather not let someone get confused if they try to. --- GPU/GLES/TextureCache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index c62b7c4e32..87cdf9cb54 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -700,6 +700,8 @@ static void ConvertColors(void *dstBuf, const void *srcBuf, GLuint dstFmt, int n default: { // No need to convert RGBA8888, right order already + if (dst != src) + memcpy(dst, src, numPixels * sizeof(u32)); } break; }