Merge pull request #14678 from unknownbrackets/d3d11-flush-state

D3D11: Use right state in flush before output
This commit is contained in:
Henrik Rydgård 2021-08-04 00:44:06 +02:00 committed by GitHub
commit 3f79c46ef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,11 +242,12 @@ void GPU_D3D11::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat f
}
void GPU_D3D11::CopyDisplayToOutput(bool reallyDirty) {
// Flush anything left over.
drawEngine_.Flush();
float blendColor[4]{};
context_->OMSetBlendState(stockD3D11.blendStateDisabledWithColorMask[0xF], blendColor, 0xFFFFFFFF);
drawEngine_.Flush();
framebufferManagerD3D11_->CopyDisplayToOutput(reallyDirty);
framebufferManagerD3D11_->EndFrame();