gles: Don't use vertex array objects
They're not needed and GLES doesn't technically support them, even though GTK had been using them via epoxy sneakily using the GL_OES_vertex_array_object extension behind our back.
This commit is contained in:
@@ -1060,8 +1060,11 @@ gsk_gl_command_queue_execute (GskGLCommandQueue *self,
|
||||
glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glBlendEquation (GL_FUNC_ADD);
|
||||
|
||||
glGenVertexArrays (1, &vao_id);
|
||||
glBindVertexArray (vao_id);
|
||||
if (!gdk_gl_context_get_use_es (self->context))
|
||||
{
|
||||
glGenVertexArrays (1, &vao_id);
|
||||
glBindVertexArray (vao_id);
|
||||
}
|
||||
|
||||
vbo_id = gsk_gl_buffer_submit (&self->vertices);
|
||||
|
||||
@@ -1234,7 +1237,8 @@ gsk_gl_command_queue_execute (GskGLCommandQueue *self,
|
||||
}
|
||||
|
||||
glDeleteBuffers (1, &vbo_id);
|
||||
glDeleteVertexArrays (1, &vao_id);
|
||||
if (!gdk_gl_context_get_use_es (self->context))
|
||||
glDeleteVertexArrays (1, &vao_id);
|
||||
|
||||
gdk_profiler_set_int_counter (self->metrics.n_binds, n_binds);
|
||||
gdk_profiler_set_int_counter (self->metrics.n_uniforms, n_uniforms);
|
||||
|
||||
Reference in New Issue
Block a user