dx11 oit: resize to null width and height when rendering to texture
Regression introduced by d2e8c9465b
Issue #974
This commit is contained in:
parent
97bd3fc082
commit
541544292a
|
@ -622,6 +622,9 @@ struct DX11OITRenderer : public DX11Renderer
|
|||
|
||||
bool Render() override
|
||||
{
|
||||
bool is_rtt = pvrrc.isRTT;
|
||||
|
||||
if (!is_rtt)
|
||||
resize(pvrrc.framebufferWidth, pvrrc.framebufferHeight);
|
||||
if (pixelBufferSize != config::PixelBufferSize)
|
||||
{
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue