Procházet zdrojové kódy

Workaround for crash at shutdown in testffmpeg

I'm not sure if this is something in SDL crashing or something in ffmpeg, but it's safer to leave the D3D DLLs loaded.
Sam Lantinga před 1 rokem
rodič
revize
9755e490c0
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/render/direct3d11/SDL_render_d3d11.c

+ 2 - 2
src/render/direct3d11/SDL_render_d3d11.c

@@ -355,11 +355,11 @@ static void D3D11_ReleaseAll(SDL_Renderer *renderer)
          * to prevent IUnknown::Release() calls from crashing.
          * to prevent IUnknown::Release() calls from crashing.
          */
          */
         if (data->hD3D11Mod) {
         if (data->hD3D11Mod) {
-            SDL_UnloadObject(data->hD3D11Mod);
+            //SDL_UnloadObject(data->hD3D11Mod);
             data->hD3D11Mod = NULL;
             data->hD3D11Mod = NULL;
         }
         }
         if (data->hDXGIMod) {
         if (data->hDXGIMod) {
-            SDL_UnloadObject(data->hDXGIMod);
+            //SDL_UnloadObject(data->hDXGIMod);
             data->hDXGIMod = NULL;
             data->hDXGIMod = NULL;
         }
         }
     }
     }