diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-27 21:02:43 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-27 21:02:43 +0100 |
commit | 0d5743ae8a077c284c0cad2e3f9dc52c6eed0a40 (patch) | |
tree | f0be64f3046b33f1d87648da369b469e8dff1a5b /src/graphics/sprite.c | |
parent | 26aa794b4260afcac0d4a9377c0218e474b051df (diff) |
Diffstat (limited to 'src/graphics/sprite.c')
-rw-r--r-- | src/graphics/sprite.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/graphics/sprite.c b/src/graphics/sprite.c index ce2566e..7ef81af 100644 --- a/src/graphics/sprite.c +++ b/src/graphics/sprite.c @@ -1,6 +1,5 @@ #include "../../include/mgl/graphics/sprite.h" #include "../../include/mgl/graphics/texture.h" -#include "../../include/mgl/window/window.h" #include "../../include/mgl/mgl.h" void mgl_sprite_init(mgl_sprite *self, mgl_texture *texture) { @@ -69,8 +68,6 @@ void mgl_sprite_draw(mgl_context *context, mgl_sprite *sprite) { if(!sprite->texture) return; - mgl_window_set_texture_blend_func(context->current_window); - float texture_right = 1.0f; float texture_bottom = 1.0f; if(sprite->texture->pixel_coordinates) { @@ -97,6 +94,4 @@ void mgl_sprite_draw(mgl_context *context, mgl_sprite *sprite) { context->gl.glEnd(); mgl_texture_use(NULL); context->gl.glLoadIdentity(); /* TODO: Remove, but what about glRotatef above */ - - mgl_window_set_render_blend_func(context->current_window); } |