glvideomixer: don't upload the vertex data every frame

Add the missing cache tracking statement.
This commit is contained in:
Matthew Waters 2015-05-13 17:10:42 +10:00
parent f01d47d0f2
commit 21a6cfcc18

View file

@ -954,6 +954,8 @@ gst_gl_video_mixer_callback (gpointer stuff)
gl->BufferData (GL_ARRAY_BUFFER, 4 * 5 * sizeof (GLfloat), v_vertices,
GL_STATIC_DRAW);
pad->geometry_change = FALSE;
} else {
gl->BindBuffer (GL_ARRAY_BUFFER, pad->vertex_buffer);
}