aboutsummaryrefslogtreecommitdiff
path: root/src/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics')
-rw-r--r--src/graphics/rectangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/rectangle.c b/src/graphics/rectangle.c
index c6b2126..879e0dd 100644
--- a/src/graphics/rectangle.c
+++ b/src/graphics/rectangle.c
@@ -1,7 +1,7 @@
#include "../../include/mgl/graphics/rectangle.h"
#include "../../include/mgl/mgl.h"
-void mgl_rectangle_draw(mgl_context *context, mgl_rectangle *rect) {
+void mgl_rectangle_draw(mgl_context *context, const mgl_rectangle *rect) {
context->gl.glColor4ub(rect->color.r, rect->color.g, rect->color.b, rect->color.a);
context->gl.glBegin(GL_QUADS);
context->gl.glVertex3f(rect->position.x, rect->position.y, 0.0f);