aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/rectangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/rectangle.c')
-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 4f2e40b..c6b2126 100644
--- a/src/graphics/rectangle.c
+++ b/src/graphics/rectangle.c
@@ -2,7 +2,7 @@
#include "../../include/mgl/mgl.h"
void mgl_rectangle_draw(mgl_context *context, mgl_rectangle *rect) {
- context->gl.glColor4f(rect->color.r, rect->color.g, rect->color.b, rect->color.a);
+ 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);
context->gl.glVertex3f(rect->position.x + rect->size.x, rect->position.y, 0.0f);