From f9f80ed3651ae32cb4ac5f726ffaa8decf716bd6 Mon Sep 17 00:00:00 2001 From: omegadox Date: Sun, 7 Dec 2008 02:23:25 +0000 Subject: [PATCH] Copy EFB to texture alignment fix thanks to slink git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1419 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp index fe5c127491..457065afc4 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp @@ -372,8 +372,8 @@ void TextureMngr::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, bool entry.frameCount = frameCount; int mult = bScaleByHalf?2:1; - int w = (abs(source->right-source->left)/mult+7)&~7; - int h = (abs(source->bottom-source->top)/mult+7)&~7; + int w = (abs(source->right-source->left)/mult); + int h = (abs(source->bottom-source->top)/mult); GL_REPORT_ERRORD();