diff --git a/deps/vitaGL/source/vitaGL.c b/deps/vitaGL/source/vitaGL.c index b4aba3faad..82164a83d9 100644 --- a/deps/vitaGL/source/vitaGL.c +++ b/deps/vitaGL/source/vitaGL.c @@ -874,7 +874,7 @@ void glBufferData(GLenum target, GLsizei size, const GLvoid *data, GLenum usage) // Free buffer if already existing. if (gpu_buffers[idx].ptr != NULL) - mempool_free(gpu_buffers[idx].ptr, type); + vgl_mem_free(gpu_buffers[idx].ptr, type); gpu_buffers[idx].ptr = gpu_alloc_mapped(size, &type); gpu_buffers[idx].size = size;