Browse Source

Update gfxGLCircularVolatileBuffer.h

Anis 9 years ago
parent
commit
58a604d363
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h

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

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