瀏覽代碼

Update gfxGLCircularVolatileBuffer.h

Anis 9 年之前
父節點
當前提交
58a604d363
共有 1 個文件被更改,包括 6 次插入1 次删除
  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