This website works better with JavaScript.
首頁
說明
登入
lolengine
/
lol
镜像来自
https://github.com/lolengine/lol
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
gpu: fix a memory leak in the VertexBuffer and IndexBuffer classes.
legacy
Sam Hocevar
sam
12 年之前
父節點
2d34fd8358
當前提交
64b37d8897
共有
2 個文件被更改
,包括
2 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/gpu/indexbuffer.cpp
+1
-0
src/gpu/vertexbuffer.cpp
+ 1
- 0
src/gpu/indexbuffer.cpp
查看文件
@@ -81,6 +81,7 @@ IndexBuffer::~IndexBuffer()
glDeleteBuffers(1, &m_data->m_ibo);
delete[] m_data->m_memory;
#endif
delete m_data;
}
void *IndexBuffer::Lock(size_t offset, size_t size)
+ 1
- 0
src/gpu/vertexbuffer.cpp
查看文件
@@ -487,6 +487,7 @@ VertexBuffer::~VertexBuffer()
glDeleteBuffers(1, &m_data->m_vbo);
delete[] m_data->m_memory;
#endif
delete m_data;
}
void *VertexBuffer::Lock(size_t offset, size_t size)
Write
Preview
Loading…
取消
儲存