mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 04:54:15 +01:00
[d3d9] Make sure clear extent does not exceed rt size
This commit is contained in:
parent
7dd443802c
commit
8a93bbd8fa
@ -1472,6 +1472,9 @@ namespace dxvk {
|
||||
|
||||
auto rtSize = m_state.renderTargets[0]->GetSurfaceExtent();
|
||||
|
||||
extent.width = std::min(rtSize.width - offset.x, extent.width);
|
||||
extent.height = std::min(rtSize.height - offset.y, extent.height);
|
||||
|
||||
bool extentMatches = align(extent.width, alignment) == align(rtSize.width, alignment)
|
||||
&& align(extent.height, alignment) == align(rtSize.height, alignment);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user