dx11 oit: resize to null width and height when rendering to texture

Regression introduced by d2e8c9465b
Issue #974
This commit is contained in:
flyinghead 2023-05-13 15:09:27 +02:00
parent 97bd3fc082
commit 541544292a
1 changed files with 13 additions and 12 deletions

View File

@ -622,7 +622,10 @@ struct DX11OITRenderer : public DX11Renderer
bool Render() override
{
resize(pvrrc.framebufferWidth, pvrrc.framebufferHeight);
bool is_rtt = pvrrc.isRTT;
if (!is_rtt)
resize(pvrrc.framebufferWidth, pvrrc.framebufferHeight);
if (pixelBufferSize != config::PixelBufferSize)
{
buffers.init(device, deviceContext);
@ -636,8 +639,6 @@ struct DX11OITRenderer : public DX11Renderer
deviceContext->OMSetRenderTargets(1, &fbRenderTarget.get(), nullptr);
configVertexShader();
bool is_rtt = pvrrc.isRTT;
deviceContext->IASetInputLayout(mainInputLayout);
n2Helper.resetCache();