Commit 2cc018e8 authored by Matthew Waters's avatar Matthew Waters 🐨 Committed by Tim-Philipp Müller

gloverlaycompositor: Also free the texcoord GL buffer

Fix a typo that was attempting to free the position GL buffer twice
(without any consequences as there was a if (buffer) check)

Fixes #561
parent 2d8d321a
......@@ -179,8 +179,8 @@ gst_gl_composition_overlay_free_vertex_buffer (GstGLContext * context,
if (overlay->texcoord_buffer) {
gl->DeleteBuffers (1, &overlay->position_buffer);
overlay->position_buffer = 0;
gl->DeleteBuffers (1, &overlay->texcoord_buffer);
overlay->texcoord_buffer = 0;
if (overlay->index_buffer) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment