aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/vertex_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/vertex_buffer.c')
-rw-r--r--src/graphics/vertex_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics/vertex_buffer.c b/src/graphics/vertex_buffer.c
index 415f574..df2c139 100644
--- a/src/graphics/vertex_buffer.c
+++ b/src/graphics/vertex_buffer.c
@@ -14,7 +14,7 @@ static unsigned int mgl_vertex_buffer_usage_to_gl_usage(mgl_vertex_buffer_usage
case MGL_USAGE_DYNAMIC: return GL_DYNAMIC_DRAW;
case MGL_USAGE_STATIC: return GL_STATIC_DRAW;
}
- return GL_STREAM_DRAW;
+ return 0;
}
static unsigned int mgl_primitive_type_to_gl_mode(mgl_primitive_type primitive_type) {
@@ -29,7 +29,7 @@ static unsigned int mgl_primitive_type_to_gl_mode(mgl_primitive_type primitive_t
case MGL_PRIMITIVE_QUAD_STRIP: return GL_QUAD_STRIP;
case MGL_PRIMITIVE_POLYGON: return GL_POLYGON;
}
- return MGL_PRIMITIVE_QUADS;
+ return 0;
}
int mgl_vertex_buffer_init(mgl_vertex_buffer *self, mgl_primitive_type primitive_type, mgl_vertex_buffer_usage usage) {