From c096311d13a27edc2594feba182f593dc73a9976 Mon Sep 17 00:00:00 2001 From: ffreyer Date: Thu, 2 Jan 2025 22:40:17 +0100 Subject: [PATCH] CI please --- GLMakie/src/gl_backend.jl | 2 ++ GLMakie/src/screen.jl | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/GLMakie/src/gl_backend.jl b/GLMakie/src/gl_backend.jl index 14615e83317..eabbe033030 100644 --- a/GLMakie/src/gl_backend.jl +++ b/GLMakie/src/gl_backend.jl @@ -36,7 +36,9 @@ function get_texture!(context, atlas::Makie.TextureAtlas) return true else @error("Cached atlas textures should be removed explicitly! $ctx") + println("Reason:", GLFW.is_initialized() ? "" : " not initialized", was_destroyed(x) ? " destroyed" : "") Base.show_backtrace(stdout, Base.catch_backtrace()) + flush(stdout) tex_func[1].id = 0 # Should get cleaned up when OpenGL context gets destroyed Makie.remove_font_render_callback!(atlas, tex_func[2]) return false diff --git a/GLMakie/src/screen.jl b/GLMakie/src/screen.jl index b00d194caf2..446db2472f4 100644 --- a/GLMakie/src/screen.jl +++ b/GLMakie/src/screen.jl @@ -706,6 +706,12 @@ function closeall(; empty_shader=true) screen = pop!(ALL_SCREENS) destroy!(screen) end + + if !isempty(atlas_texture_cache) + @warn "texture atlas cleanup incomplete: $atlas_texture_cache" + empty!(atlas_texture_cache) + end + empty!(SINGLETON_SCREEN) empty!(SCREEN_REUSE_POOL) return