don't protect RTT textures vram
Fixes Spikers Battle RTT texture spurious update before use (transitions)
This commit is contained in:
parent
b0f3e065be
commit
6a5db32d5d
|
@ -1129,7 +1129,7 @@ void DX11Renderer::readRttRenderTarget(u32 texAddress)
|
|||
device->CreateShaderResourceView(texture->texture, &viewDesc, &texture->textureView.get());
|
||||
|
||||
texture->dirty = 0;
|
||||
texture->protectVRam();
|
||||
texture->unprotectVRam();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -930,7 +930,7 @@ void D3DRenderer::readRttRenderTarget(u32 texAddress)
|
|||
D3DTexture* texture = texCache.getRTTexture(texAddress, pvrrc.fb_W_CTRL.fb_packmode, w, h);
|
||||
texture->texture = rttTexture;
|
||||
texture->dirty = 0;
|
||||
texture->protectVRam();
|
||||
texture->unprotectVRam();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -332,7 +332,7 @@ void ReadRTTBuffer()
|
|||
texture_data->texID = gl.rtt.tex;
|
||||
gl.rtt.tex = 0;
|
||||
texture_data->dirty = 0;
|
||||
texture_data->protectVRam();
|
||||
texture_data->unprotectVRam();
|
||||
}
|
||||
gl.rtt.texAddress = ~0;
|
||||
}
|
||||
|
|
|
@ -527,7 +527,7 @@ void TextureDrawer::EndRenderPass()
|
|||
//memset(&vram[fb_rtt.TexAddr << 3], '\0', size);
|
||||
|
||||
texture->dirty = 0;
|
||||
texture->protectVRam();
|
||||
texture->unprotectVRam();
|
||||
}
|
||||
Drawer::EndRenderPass();
|
||||
}
|
||||
|
|
|
@ -646,7 +646,7 @@ void OITTextureDrawer::EndFrame()
|
|||
//memset(&vram[fb_rtt.TexAddr << 3], '\0', size);
|
||||
|
||||
texture->dirty = 0;
|
||||
texture->protectVRam();
|
||||
texture->unprotectVRam();
|
||||
}
|
||||
OITDrawer::EndFrame();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue