summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index ba60ea8bff..21d310e170 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -392,8 +392,10 @@ static void uninitGl(void) {
DeleteBuffers(2, gl_buffer_uv);
gl_buffer_uv[0] = gl_buffer_uv[1] = 0; gl_buffersize_uv = 0;
gl_bufferptr_uv[0] = gl_bufferptr_uv[1] = 0;
+#ifndef GL_WIN32
if (mesa_bufferptr)
FreeMemoryMESA(mDisplay, mScreen, mesa_bufferptr);
+#endif
mesa_bufferptr = NULL;
err_shown = 0;
}