Explorar el Código

gpu: fix a memory leak in the VertexBuffer and IndexBuffer classes.

legacy
Sam Hocevar sam hace 12 años
padre
commit
64b37d8897
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. +1
    -0
      src/gpu/indexbuffer.cpp
  2. +1
    -0
      src/gpu/vertexbuffer.cpp

+ 1
- 0
src/gpu/indexbuffer.cpp Ver fichero

@@ -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 Ver fichero

@@ -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)


Cargando…
Cancelar
Guardar