Skip to content
Snippets Groups Projects
Commit 9f1683bd authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Steve Lhomme
Browse files

opengl: renderer: add assertions for GL errors

Ensure that draw commands are not leading to any error later in the
pipeline.
parent 8bc819a2
No related branches found
No related tags found
1 merge request!3476opengl: interop: handle GLES2 case during runtime
......@@ -712,6 +712,7 @@ Draw(struct vlc_gl_filter *filter, const struct vlc_gl_picture *pic,
const opengl_vtable_t *vt = renderer->vt;
vt->Clear(GL_COLOR_BUFFER_BIT);
GL_ASSERT_NOERROR(vt);
vt->UseProgram(renderer->program_id);
......@@ -751,6 +752,7 @@ Draw(struct vlc_gl_filter *filter, const struct vlc_gl_picture *pic,
renderer->var.ZoomMatrix);
vt->DrawElements(GL_TRIANGLES, renderer->nb_indices, GL_UNSIGNED_SHORT, 0);
GL_ASSERT_NOERROR(vt);
return VLC_SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment