d3d12: Fix scaling for terraria/Voodoo chronicles

It break render_to_target test but it looks like an issue with
scale/offset buffer rather than viewport/scissor
This commit is contained in:
vlj 2015-06-16 15:55:04 +02:00 committed by Vincent Lejeune
commit f59bc86ac5

View file

@ -850,8 +850,8 @@ void D3D12GSRender::ExecCMD()
{ {
0.f, 0.f,
0.f, 0.f,
(float)RSXThread::m_width, (float)m_surface_clip_w,
(float)RSXThread::m_height, (float)m_surface_clip_h,
-1.f, -1.f,
1.f 1.f
}; };
@ -861,8 +861,8 @@ void D3D12GSRender::ExecCMD()
{ {
0, 0,
0, 0,
(LONG)RSXThread::m_width, (LONG)m_surface_clip_w,
(LONG)RSXThread::m_height, (LONG)m_surface_clip_h,
}; };
commandList->RSSetScissorRects(1, &box); commandList->RSSetScissorRects(1, &box);