mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fix XFB scaling in D3D
This commit is contained in:
@ -126,7 +126,7 @@ void Television::Shutdown()
|
||||
SAFE_RELEASE(m_samplerState);
|
||||
}
|
||||
|
||||
void Television::Submit(u32 xfbAddr, u32 width, u32 height)
|
||||
void Television::Submit(u32 xfbAddr, u32 stride, u32 width, u32 height)
|
||||
{
|
||||
m_curAddr = xfbAddr;
|
||||
m_curWidth = width;
|
||||
@ -134,8 +134,8 @@ void Television::Submit(u32 xfbAddr, u32 width, u32 height)
|
||||
|
||||
// Load data from GameCube RAM to YUYV texture
|
||||
u8* yuyvSrc = Memory::GetPointer(xfbAddr);
|
||||
D3D11_BOX box = CD3D11_BOX(0, 0, 0, width, height, 1);
|
||||
D3D::context->UpdateSubresource(m_yuyvTexture, 0, &box, yuyvSrc, 2*width, 2*width*height);
|
||||
D3D11_BOX box = CD3D11_BOX(0, 0, 0, stride, height, 1);
|
||||
D3D::context->UpdateSubresource(m_yuyvTexture, 0, &box, yuyvSrc, 2*stride, 2*stride*height);
|
||||
}
|
||||
|
||||
void Television::Render()
|
||||
|
Reference in New Issue
Block a user