memory leak patch

This commit is contained in:
DrPerkyLegit
2026-06-23 09:45:29 -04:00
parent 5b19646cc6
commit c2a44a93b9

View File

@@ -703,7 +703,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
#endif
app.loadMediaArchive();
RenderManager.Initialise(g_pd3dDevice, g_pSwapChain);
// @CDevJoud: No need to call this method as it gets called once in `InitDevice()`
// Calling it again and it results of 20MB of memory leak!
//RenderManager.Initialise(g_pd3dDevice, g_pSwapChain);
app.loadStringTable();
ui.init(g_pd3dDevice,g_pImmediateContext,g_pRenderTargetView,g_pDepthStencilView,g_iScreenWidth,g_iScreenHeight);