[gtk/wip/baedert/gl-rework: 80/127] gl renderer: Remove a few outdated comments
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 80/127] gl renderer: Remove a few outdated comments
- Date: Mon, 30 Dec 2019 04:17:41 +0000 (UTC)
commit 0e1cdad546e1e7e105133aea9776ebdc16dc0969
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 16 07:01:34 2019 +0100
gl renderer: Remove a few outdated comments
gsk/gl/gskglrenderer.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index c0734532cc..b8d491062c 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -3271,27 +3271,22 @@ static void
gsk_gl_renderer_render_ops (GskGLRenderer *self)
{
const Program *program = NULL;
- gsize vertex_data_size = self->op_builder.vertices->len * sizeof (GskQuadVertex);
- float *vertex_data = (float*)self->op_builder.vertices->data;
+ const gsize vertex_data_size = self->op_builder.vertices->len * sizeof (GskQuadVertex);
+ const float *vertex_data = (float *)self->op_builder.vertices->data;
OpBufferIter iter;
OpKind kind;
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);
glBindVertexArray (vao_id);
glGenBuffers (1, &buffer_id);
glBindBuffer (GL_ARRAY_BUFFER, buffer_id);
- // Set buffer data
glBufferData (GL_ARRAY_BUFFER, vertex_data_size, vertex_data, GL_STATIC_DRAW);
- // Describe buffer contents
-
/* 0 = position location */
glEnableVertexAttribArray (0);
glVertexAttribPointer (0, 2, GL_FLOAT, GL_FALSE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]