mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
glvideomixer: don't upload the vertex data every frame
Add the missing cache tracking statement.
This commit is contained in:
parent
f01d47d0f2
commit
21a6cfcc18
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue