From 129ffacf0a6e319c80df7987539573da083a8ce9 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Sun, 19 Sep 2010 10:29:09 +0000 Subject: [PATCH] GregMiscellaneous: zzogl-pg: * Lost a -1 somewhere... git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3807 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/targets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/zzogl-pg/opengl/targets.cpp b/plugins/zzogl-pg/opengl/targets.cpp index 162af79177..e59fc223ee 100644 --- a/plugins/zzogl-pg/opengl/targets.cpp +++ b/plugins/zzogl-pg/opengl/targets.cpp @@ -3037,7 +3037,7 @@ void Resolve_32b(const void* psrc, int fbp, int fbw, int fbh, u32 fbm) // Start the src array at the end to reduce testing in loop u32 raw_size = RH(Pitch(fbw))/sizeof(u32); - u32* src = (u32*)(psrc) + maxfbh*raw_size; + u32* src = (u32*)(psrc) + (maxfbh-1)*raw_size; // Manually optimize the loop (typical 448x512). In particular unroll 64times the inner loop // And move maximum code outside (compiler must do it normally...)