GPU: Fix crash when trying to postprocess surfaceless

This commit is contained in:
Stenzek
2023-12-31 19:40:45 +10:00
parent c57bd3c430
commit 12b9cf1898
2 changed files with 5 additions and 2 deletions

View File

@ -681,6 +681,7 @@ bool PostProcessing::CheckTargets(GPUTexture::Format target_format, u32 target_w
!(s_output_texture = g_gpu_device->FetchTexture(target_width, target_height, 1, 1, 1,
GPUTexture::Type::RenderTarget, target_format)))
{
DestroyTextures();
return false;
}