commit 810dba75ff38617ad8915db6ef0d8cdec4b9f7e7
parent 8aa4d7eedda52cb594c0530b8a4a6f7e6b6bbbb8
Author: Michael Savage <mikejsavage@gmail.com>
Date: Mon, 4 Mar 2019 16:28:34 +0200
Formatting
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/renderer.cc b/renderer.cc
@@ -284,7 +284,7 @@ static void drawcall_single( const Mesh & mesh, const RenderState & state ) {
glBindVertexArray( mesh.vao );
GLenum primitive = primitivetype_to_glenum( mesh.primitive_type );
if( mesh.indices != 0 ) {
- glDrawElements( primitive, mesh.num_vertices, mesh.indices_format == INDEXFMT_U16 ? GL_UNSIGNED_SHORT: GL_UNSIGNED_INT, 0 );
+ glDrawElements( primitive, mesh.num_vertices, mesh.indices_format == INDEXFMT_U16 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, 0 );
}
else {
glDrawArrays( primitive, 0, mesh.num_vertices );