mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
eglglessink: Cosmetics
This commit is contained in:
parent
e022fc5389
commit
734ac85bb4
1 changed files with 23 additions and 23 deletions
|
@ -2285,32 +2285,32 @@ gst_eglglessink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
|||
GST_DEBUG_OBJECT (eglglessink, "Caps are not compatible, reconfiguring");
|
||||
|
||||
if (eglglessink->rendering_path == GST_EGLGLESSINK_RENDER_SLOW) {
|
||||
glUseProgram (0);
|
||||
glUseProgram (0);
|
||||
|
||||
if (eglglessink->have_vbo) {
|
||||
glDeleteBuffers (1, &eglglessink->eglglesctx->position_buffer);
|
||||
glDeleteBuffers (1, &eglglessink->eglglesctx->texpos_buffer);
|
||||
glDeleteBuffers (1, &eglglessink->eglglesctx->index_buffer);
|
||||
eglglessink->have_vbo = FALSE;
|
||||
}
|
||||
if (eglglessink->have_vbo) {
|
||||
glDeleteBuffers (1, &eglglessink->eglglesctx->position_buffer);
|
||||
glDeleteBuffers (1, &eglglessink->eglglesctx->texpos_buffer);
|
||||
glDeleteBuffers (1, &eglglessink->eglglesctx->index_buffer);
|
||||
eglglessink->have_vbo = FALSE;
|
||||
}
|
||||
|
||||
if (eglglessink->have_texture) {
|
||||
glDeleteTextures (eglglessink->eglglesctx->n_textures,
|
||||
eglglessink->eglglesctx->texture);
|
||||
eglglessink->have_texture = FALSE;
|
||||
eglglessink->eglglesctx->n_textures = 0;
|
||||
}
|
||||
if (eglglessink->have_texture) {
|
||||
glDeleteTextures (eglglessink->eglglesctx->n_textures,
|
||||
eglglessink->eglglesctx->texture);
|
||||
eglglessink->have_texture = FALSE;
|
||||
eglglessink->eglglesctx->n_textures = 0;
|
||||
}
|
||||
|
||||
if (eglglessink->eglglesctx->glslprogram) {
|
||||
glDetachShader (eglglessink->eglglesctx->glslprogram,
|
||||
eglglessink->eglglesctx->fragshader);
|
||||
glDetachShader (eglglessink->eglglesctx->glslprogram,
|
||||
eglglessink->eglglesctx->vertshader);
|
||||
glDeleteProgram (eglglessink->eglglesctx->glslprogram);
|
||||
glDeleteShader (eglglessink->eglglesctx->fragshader);
|
||||
glDeleteShader (eglglessink->eglglesctx->vertshader);
|
||||
eglglessink->eglglesctx->glslprogram = 0;
|
||||
}
|
||||
if (eglglessink->eglglesctx->glslprogram) {
|
||||
glDetachShader (eglglessink->eglglesctx->glslprogram,
|
||||
eglglessink->eglglesctx->fragshader);
|
||||
glDetachShader (eglglessink->eglglesctx->glslprogram,
|
||||
eglglessink->eglglesctx->vertshader);
|
||||
glDeleteProgram (eglglessink->eglglesctx->glslprogram);
|
||||
glDeleteShader (eglglessink->eglglesctx->fragshader);
|
||||
glDeleteShader (eglglessink->eglglesctx->vertshader);
|
||||
eglglessink->eglglesctx->glslprogram = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (eglglessink->eglglesctx->surface) {
|
||||
|
|
Loading…
Reference in a new issue