diff --git a/core/rend/dx11/dx11_renderer.cpp b/core/rend/dx11/dx11_renderer.cpp index be6adeae1..54b8e2640 100644 --- a/core/rend/dx11/dx11_renderer.cpp +++ b/core/rend/dx11/dx11_renderer.cpp @@ -1129,7 +1129,7 @@ void DX11Renderer::readRttRenderTarget(u32 texAddress) device->CreateShaderResourceView(texture->texture, &viewDesc, &texture->textureView.get()); texture->dirty = 0; - texture->protectVRam(); + texture->unprotectVRam(); } } } diff --git a/core/rend/dx9/d3d_renderer.cpp b/core/rend/dx9/d3d_renderer.cpp index bc2ed62e0..d200d206d 100644 --- a/core/rend/dx9/d3d_renderer.cpp +++ b/core/rend/dx9/d3d_renderer.cpp @@ -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(); } } } diff --git a/core/rend/gles/gltex.cpp b/core/rend/gles/gltex.cpp index 4b601a55d..a94637e9b 100644 --- a/core/rend/gles/gltex.cpp +++ b/core/rend/gles/gltex.cpp @@ -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; } diff --git a/core/rend/vulkan/drawer.cpp b/core/rend/vulkan/drawer.cpp index cb11397bd..ce49e6c77 100644 --- a/core/rend/vulkan/drawer.cpp +++ b/core/rend/vulkan/drawer.cpp @@ -527,7 +527,7 @@ void TextureDrawer::EndRenderPass() //memset(&vram[fb_rtt.TexAddr << 3], '\0', size); texture->dirty = 0; - texture->protectVRam(); + texture->unprotectVRam(); } Drawer::EndRenderPass(); } diff --git a/core/rend/vulkan/oit/oit_drawer.cpp b/core/rend/vulkan/oit/oit_drawer.cpp index e0798938d..8f2aadfc0 100644 --- a/core/rend/vulkan/oit/oit_drawer.cpp +++ b/core/rend/vulkan/oit/oit_drawer.cpp @@ -646,7 +646,7 @@ void OITTextureDrawer::EndFrame() //memset(&vram[fb_rtt.TexAddr << 3], '\0', size); texture->dirty = 0; - texture->protectVRam(); + texture->unprotectVRam(); } OITDrawer::EndFrame(); }