From a0971b0a124f7c1ff040cc226aaa0ce7e58b8a40 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 2 Aug 2024 06:01:50 +0200 Subject: Ensure correct blending function for transparent window --- src/window/Window.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/window') diff --git a/src/window/Window.cpp b/src/window/Window.cpp index 339df71..0e80456 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -182,6 +182,14 @@ namespace mgl { return result; } + void Window::set_texture_blend_func() { + mgl_window_set_texture_blend_func(&window); + } + + void Window::set_render_blend_func() { + mgl_window_set_render_blend_func(&window); + } + WindowHandle Window::get_system_handle() const { return window.window; } -- cgit v1.2.3