Il sito funziona meglio con JavaScript.
Home
Aiuto
Accedi
lolengine
/
lol
mirror da
https://github.com/lolengine/lol
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
gpu: fix a memory leak in the VertexBuffer and IndexBuffer classes.
legacy
Sam Hocevar
sam
13 anni fa
parent
2d34fd8358
commit
64b37d8897
2 ha cambiato i file
con
2 aggiunte
e
0 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+1
-0
src/gpu/indexbuffer.cpp
+1
-0
src/gpu/vertexbuffer.cpp
+ 1
- 0
src/gpu/indexbuffer.cpp
Vedi 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
Vedi 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)
Scrivi
Anteprima
Caricamento…
Annulla
Salva