Merge pull request #2117 from NZJenkins/clear-fix

Ensure the xbox viewport is applied when Clear is called
This commit is contained in:
Luke Usher 2021-01-11 08:11:00 +00:00 committed by GitHub
commit e0f41fe6f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -4874,6 +4874,9 @@ xbox::void_xt WINAPI xbox::EMUPATCH(D3DDevice_Clear)
DWORD HostFlags = 0;
// Clear requires the Xbox viewport to be applied
CxbxUpdateNativeD3DResources();
// make adjustments to parameters to make sense with windows d3d
{
if (Flags & X_D3DCLEAR_TARGET) {