From 0d5743ae8a077c284c0cad2e3f9dc52c6eed0a40 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 27 Dec 2024 21:02:43 +0100 Subject: Use correct alpha blending for transparent window --- src/graphics/vertex.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/graphics/vertex.c') diff --git a/src/graphics/vertex.c b/src/graphics/vertex.c index 92a6e93..e55c180 100644 --- a/src/graphics/vertex.c +++ b/src/graphics/vertex.c @@ -1,14 +1,11 @@ #include "../../include/mgl/graphics/vertex.h" #include "../../include/mgl/graphics/texture.h" -#include "../../include/mgl/window/window.h" #include "../../include/mgl/mgl.h" void mgl_vertices_draw(mgl_context *context, const mgl_vertex *vertices, size_t vertex_count, mgl_primitive_type primitive_type, mgl_vec2f position) { if(vertex_count == 0) return; - mgl_window_set_texture_blend_func(context->current_window); - context->gl.glPushMatrix(); if(!mgl_texture_current_texture()) { @@ -25,6 +22,4 @@ void mgl_vertices_draw(mgl_context *context, const mgl_vertex *vertices, size_t context->gl.glDrawArrays(mgl_primitive_type_to_gl_mode(primitive_type), 0, vertex_count); context->gl.glPopMatrix(); - - mgl_window_set_render_blend_func(context->current_window); } -- cgit v1.2.3