mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
glvideomixer: don't upload the vertex data every frame
Add the missing cache tracking statement.
This commit is contained in:
parent
fa6dbaeb6c
commit
2362ee8bee
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->BufferData (GL_ARRAY_BUFFER, 4 * 5 * sizeof (GLfloat), v_vertices,
|
||||||
GL_STATIC_DRAW);
|
GL_STATIC_DRAW);
|
||||||
|
|
||||||
|
pad->geometry_change = FALSE;
|
||||||
} else {
|
} else {
|
||||||
gl->BindBuffer (GL_ARRAY_BUFFER, pad->vertex_buffer);
|
gl->BindBuffer (GL_ARRAY_BUFFER, pad->vertex_buffer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue