Wrap IBO index type into one definition
Makes it easier to switch between types (eg. 32 -> 16 bit).
This commit is contained in:
parent
295e0e5b15
commit
caae9c5689
4 changed files with 18 additions and 11 deletions
|
|
@ -176,7 +176,7 @@ struct Quad
|
|||
}
|
||||
|
||||
VAO::bind(vao);
|
||||
gl.DrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);
|
||||
gl.DrawElements(GL_TRIANGLES, 6, _GL_INDEX_TYPE, 0);
|
||||
VAO::unbind();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue