Skip to content

Commit

Permalink
CI please
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Jan 2, 2025
1 parent 4b74544 commit c096311
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GLMakie/src/gl_backend.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions GLMakie/src/screen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c096311

Please sign in to comment.