vk oit: crash when rendering to texture

This commit is contained in:
Flyinghead 2021-01-31 17:30:34 +01:00
parent 6105365065
commit a71c897d56
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ bool OITDrawer::Draw(const Texture *fogTexture, const Texture *paletteTexture)
cmdBuffer.nextSubpass(vk::SubpassContents::eInline);
GetCurrentDescSet().BindColorInputDescSet(cmdBuffer, (pvrrc.render_passes.used() - 1 - render_pass) % 2);
if (initialPass && clearNeeded[GetCurrentImage()] && !pvrrc.isRTT)
if (initialPass && !pvrrc.isRTT && clearNeeded[GetCurrentImage()])
{
clearNeeded[GetCurrentImage()] = false;
SetScissor(cmdBuffer, viewport);