dx11: disable scissor test when rendering framebuffer

Issue #847
This commit is contained in:
flyinghead 2023-01-02 16:04:17 +01:00
parent 7372df3aff
commit 5ef80f0a17
1 changed files with 3 additions and 1 deletions

View File

@ -484,7 +484,7 @@ void DX11Renderer::displayFramebuffer()
int outwidth = settings.display.width;
int outheight = settings.display.height;
float renderAR = aspectRatio;
if (config::Rotate90) {
if (config::Rotate90) {
std::swap(outwidth, outheight);
renderAR = 1 / renderAR;
}
@ -920,6 +920,8 @@ void DX11Renderer::RenderFramebuffer(const FramebufferInfo& info)
vp.MinDepth = 0.f;
vp.MaxDepth = 1.f;
deviceContext->RSSetViewports(1, &vp);
const D3D11_RECT r = { 0, 0, (LONG)this->width, (LONG)this->height };
deviceContext->RSSetScissorRects(1, &r);
deviceContext->OMSetBlendState(blendStates.getState(false), nullptr, 0xffffffff);
float bar = (this->width - this->height * 640.f / 480.f) / 2.f;