diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-12 21:27:18 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-12 21:27:18 +0100 |
commit | 0fc77a5d2208b4649c8a274c34b79a6ce74580e4 (patch) | |
tree | 349cbfeadfe9e47a11aaece9f8fd47a31b5582e7 | |
parent | 650be43cf1409a9086d006c918f3bcce43c3ca3e (diff) |
This reverts commit 650be43cf1409a9086d006c918f3bcce43c3ca3e.
-rw-r--r-- | src/graphics/rectangle.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/graphics/rectangle.c b/src/graphics/rectangle.c index de721b7..879e0dd 100644 --- a/src/graphics/rectangle.c +++ b/src/graphics/rectangle.c @@ -1,10 +1,7 @@ #include "../../include/mgl/graphics/rectangle.h" #include "../../include/mgl/mgl.h" -#include "../../include/mgl/window/window.h" void mgl_rectangle_draw(mgl_context *context, const mgl_rectangle *rect) { - mgl_window_set_texture_blend_func(context->current_window); - 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); @@ -12,6 +9,4 @@ void mgl_rectangle_draw(mgl_context *context, const mgl_rectangle *rect) { context->gl.glVertex3f(rect->position.x + rect->size.x, rect->position.y + rect->size.y, 0.0f); context->gl.glVertex3f(rect->position.x, rect->position.y + rect->size.y, 0.0f); context->gl.glEnd(); - - mgl_window_set_render_blend_func(context->current_window); } |