gl renderer: Remove a few outdated comments

This commit is contained in:
Timm Bäder 2019-12-16 07:01:34 +01:00
parent f31667f437
commit 3d260a950e

View File

@ -3271,27 +3271,22 @@ static void
gsk_gl_renderer_render_ops (GskGLRenderer *self) gsk_gl_renderer_render_ops (GskGLRenderer *self)
{ {
const Program *program = NULL; const Program *program = NULL;
gsize vertex_data_size = self->op_builder.vertices->len * sizeof (GskQuadVertex); const gsize vertex_data_size = self->op_builder.vertices->len * sizeof (GskQuadVertex);
float *vertex_data = (float*)self->op_builder.vertices->data; const float *vertex_data = (float *)self->op_builder.vertices->data;
OpBufferIter iter; OpBufferIter iter;
OpKind kind; OpKind kind;
gpointer ptr; gpointer ptr;
/*g_message ("%s: Buffer size: %ld", __FUNCTION__, vertex_data_size);*/
GLuint buffer_id, vao_id; GLuint buffer_id, vao_id;
glGenVertexArrays (1, &vao_id); glGenVertexArrays (1, &vao_id);
glBindVertexArray (vao_id); glBindVertexArray (vao_id);
glGenBuffers (1, &buffer_id); glGenBuffers (1, &buffer_id);
glBindBuffer (GL_ARRAY_BUFFER, buffer_id); glBindBuffer (GL_ARRAY_BUFFER, buffer_id);
// Set buffer data
glBufferData (GL_ARRAY_BUFFER, vertex_data_size, vertex_data, GL_STATIC_DRAW); glBufferData (GL_ARRAY_BUFFER, vertex_data_size, vertex_data, GL_STATIC_DRAW);
// Describe buffer contents
/* 0 = position location */ /* 0 = position location */
glEnableVertexAttribArray (0); glEnableVertexAttribArray (0);
glVertexAttribPointer (0, 2, GL_FLOAT, GL_FALSE, glVertexAttribPointer (0, 2, GL_FLOAT, GL_FALSE,