Video: Trying to fix D3D/XFB disabled regression

This commit is contained in:
booto
2015-07-26 00:59:00 +08:00
parent 3801f89125
commit 9d055ba5f2
3 changed files with 8 additions and 6 deletions

View File

@ -162,7 +162,8 @@ FramebufferManager::~FramebufferManager()
void FramebufferManager::CopyToRealXFB(u32 xfbAddr, u32 fbStride, u32 fbHeight, const EFBRectangle& sourceRc,float Gamma)
{
u8* dst = Memory::GetPointer(xfbAddr);
s_xfbEncoder.Encode(dst, fbStride, fbHeight, sourceRc, Gamma);
// below div2 due to dx using pixel width
s_xfbEncoder.Encode(dst, fbStride/2, fbHeight, sourceRc, Gamma);
}
XFBSourceBase* FramebufferManager::CreateXFBSource(unsigned int target_width, unsigned int target_height, unsigned int layers)