This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
gpu: fix a memory leak in the VertexBuffer and IndexBuffer classes.
legacy
Sam Hocevar
sam
12 years ago
parent
2d34fd8358
commit
64b37d8897
2 changed files
with
2 additions
and
0 deletions
Split View
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
View File
@@ -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
View File
@@ -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…
Cancel
Save