Sfoglia il codice sorgente

Memory Leak in Direcx11Api behoben

Kolja Strohm 5 anni fa
parent
commit
2b4fdc35f6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      DX11GraphicsApi.cpp

+ 2 - 0
DX11GraphicsApi.cpp

@@ -516,6 +516,8 @@ void DirectX11::initialize( WFenster *fenster, Vec2<int> backBufferSize, bool fu
 
 void DirectX11::update()
 {
+    if( pointLights )
+        pointLights->release();
     if( vertexBuffer )
         vertexBuffer = (DX11Buffer *)vertexBuffer->release();
     if( indexBuffer )