gl render ops: Rename a member

This commit is contained in:
Timm Bäder 2017-11-24 10:24:49 +01:00
parent b56a7afd19
commit cb9c4e362c
3 changed files with 6 additions and 5 deletions

View File

@ -1184,8 +1184,8 @@ gsk_gl_renderer_render_ops (GskGLRenderer *self,
case OP_DRAW:
OP_PRINT (" -> draw %ld, size %ld and program %s\n",
op->draw.vao_offset, op->draw.draw_size, program->name);
glDrawArrays (GL_TRIANGLES, op->draw.vao_offset, op->draw.draw_size);//GL_N_VERTICES);
op->draw.vao_offset, op->draw.vao_size, program->name);
glDrawArrays (GL_TRIANGLES, op->draw.vao_offset, op->draw.vao_size);//GL_N_VERTICES);
break;
default:

View File

@ -228,7 +228,7 @@ ops_draw (RenderOpBuilder *builder,
RenderOp new_draw;
new_draw.op = OP_DRAW;
new_draw.draw.vao_offset = last_op->draw.vao_offset;
new_draw.draw.draw_size = last_op->draw.draw_size + GL_N_VERTICES;
new_draw.draw.vao_size = last_op->draw.vao_size + GL_N_VERTICES;
last_op->op = OP_CHANGE_VAO;
memcpy (&last_op->vertex_data, vertex_data, sizeof(GskQuadVertex) * GL_N_VERTICES);
@ -247,7 +247,7 @@ ops_draw (RenderOpBuilder *builder,
op.op = OP_DRAW;
op.draw.vao_offset = offset;
op.draw.draw_size = GL_N_VERTICES;
op.draw.vao_size = GL_N_VERTICES;
g_array_append_val (builder->render_ops, op);
}

View File

@ -97,8 +97,9 @@ typedef struct
} linear_gradient;
struct {
gsize vao_offset;
gsize draw_size;
gsize vao_size;
} draw;
};
} RenderOp;