mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Fix scissor rect not getting updated along with the viewport.
This commit is contained in:
parent
5676591618
commit
78788620b7
1 changed files with 2 additions and 0 deletions
|
|
@ -1811,6 +1811,8 @@ static void ProcSetViewport(const RenderCommand& cmd)
|
||||||
SetDirtyValue<float>(g_dirtyStates.viewport, g_viewport.height, args.height);
|
SetDirtyValue<float>(g_dirtyStates.viewport, g_viewport.height, args.height);
|
||||||
SetDirtyValue<float>(g_dirtyStates.viewport, g_viewport.minDepth, args.minDepth);
|
SetDirtyValue<float>(g_dirtyStates.viewport, g_viewport.minDepth, args.minDepth);
|
||||||
SetDirtyValue<float>(g_dirtyStates.viewport, g_viewport.maxDepth, args.maxDepth);
|
SetDirtyValue<float>(g_dirtyStates.viewport, g_viewport.maxDepth, args.maxDepth);
|
||||||
|
|
||||||
|
g_dirtyStates.scissorRect |= g_dirtyStates.viewport;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetTexture(GuestDevice* device, uint32_t index, GuestTexture* texture)
|
static void SetTexture(GuestDevice* device, uint32_t index, GuestTexture* texture)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue