SDL: Don't release currentOffscreenRenderTargetView, we don't have a reference to it

From 2ad4646a2488a435ac54b3b342d03b92302b3058 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 3 Feb 2024 12:48:14 -0800
Subject: [PATCH] Don't release currentOffscreenRenderTargetView, we don't have
 a reference to it

---
 src/render/direct3d11/SDL_render_d3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/render/direct3d11/SDL_render_d3d11.c b/src/render/direct3d11/SDL_render_d3d11.c
index 51b5293df229..de4499f17cc9 100644
--- a/src/render/direct3d11/SDL_render_d3d11.c
+++ b/src/render/direct3d11/SDL_render_d3d11.c
@@ -304,7 +304,6 @@ static void D3D11_ReleaseAll(SDL_Renderer *renderer)
             SAFE_RELEASE(data->vertexBuffers[i]);
         }
         SAFE_RELEASE(data->inputLayout);
-        SAFE_RELEASE(data->currentOffscreenRenderTargetView);
         SAFE_RELEASE(data->mainRenderTargetView);
         SAFE_RELEASE(data->swapChain);
 
@@ -319,6 +318,7 @@ static void D3D11_ReleaseAll(SDL_Renderer *renderer)
 
         data->swapEffect = (DXGI_SWAP_EFFECT)0;
         data->rotation = DXGI_MODE_ROTATION_UNSPECIFIED;
+        data->currentOffscreenRenderTargetView = NULL;
         data->currentRenderTargetView = NULL;
         data->currentRasterizerState = NULL;
         data->currentBlendState = NULL;