Jelajahi Sumber

Update gfxGLCircularVolatileBuffer.h

Anis 10 tahun lalu
induk
melakukan
58a604d363
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  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