renderer: Use ATTR_INDEX_ constants for glEnableVertex*
parent
e85f219aff
commit
dc7adf8f3b
|
@ -377,13 +377,13 @@ void gl_draw(void)
|
||||||
glVertexAttribPointer(ATTR_INDEX_TEXTURE, 2, GL_FLOAT, GL_FALSE, 0,
|
glVertexAttribPointer(ATTR_INDEX_TEXTURE, 2, GL_FLOAT, GL_FALSE, 0,
|
||||||
s_positions);
|
s_positions);
|
||||||
|
|
||||||
glEnableVertexAttribArray(0);
|
glEnableVertexAttribArray(ATTR_INDEX_POS);
|
||||||
glEnableVertexAttribArray(1);
|
glEnableVertexAttribArray(ATTR_INDEX_TEXTURE);
|
||||||
|
|
||||||
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
|
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
|
||||||
|
|
||||||
glDisableVertexAttribArray(0);
|
glDisableVertexAttribArray(ATTR_INDEX_TEXTURE);
|
||||||
glDisableVertexAttribArray(1);
|
glDisableVertexAttribArray(ATTR_INDEX_POS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void renderer_swap(struct renderer* self)
|
void renderer_swap(struct renderer* self)
|
||||||
|
|
Loading…
Reference in New Issue