Pārlūkot izejas kodu

Update gfxGLCircularVolatileBuffer.h

Anis 9 gadi atpakaļ
vecāks
revīzija
58a604d363
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h

+ 6 - 1
Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h

@@ -143,6 +143,11 @@ public:
       init();
    }
 
+   ~GLCircularVolatileBuffer()
+   {
+      glDeleteBuffers(1, &mBufferName);
+   }
+
    void init()
    {
       glGenBuffers(1, &mBufferName);
@@ -290,4 +295,4 @@ protected:
 };
 
 
-#endif
+#endif