summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/opengl/gl_utils.c4
-rw-r--r--video/out/opengl/ra_gl.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/video/out/opengl/gl_utils.c b/video/out/opengl/gl_utils.c
index ab34eea2e5..6c0537febc 100644
--- a/video/out/opengl/gl_utils.c
+++ b/video/out/opengl/gl_utils.c
@@ -139,7 +139,7 @@ static void gl_vao_enable_attribs(struct gl_vao *vao)
GLenum type = 0;
bool normalized = false;
switch (e->type) {
- case RA_VARTYPE_INT:
+ case RA_VARTYPE_INT:
type = GL_INT;
break;
case RA_VARTYPE_FLOAT:
@@ -221,7 +221,7 @@ static void gl_vao_unbind(struct gl_vao *vao)
if (gl->BindVertexArray) {
gl->BindVertexArray(0);
} else {
- for (int n = 0; vao->entries[n].name; n++)
+ for (int n = 0; n < vao->num_entries; n++)
gl->DisableVertexAttribArray(n);
}
}
diff --git a/video/out/opengl/ra_gl.c b/video/out/opengl/ra_gl.c
index 5f8c525f5b..7dd3a43d13 100644
--- a/video/out/opengl/ra_gl.c
+++ b/video/out/opengl/ra_gl.c
@@ -810,8 +810,8 @@ static struct ra_renderpass *gl_renderpass_create(struct ra *ra,
}
gl->UseProgram(0);
- gl_vao_init(&pass_gl->vao, gl, params->vertex_stride, params->vertex_attribs,
- params->num_vertex_attribs);
+ gl_vao_init(&pass_gl->vao, gl, pass->params.vertex_stride,
+ pass->params.vertex_attribs, pass->params.num_vertex_attribs);
return pass;
}