Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALLEGRO_AUTO_CONVERT_BITMAPS might not be working when displays get destroyed/re-created #1525

Open
SiegeLord opened this issue Jan 6, 2024 · 1 comment

Comments

@SiegeLord
Copy link
Member

A report from Discord:

Are you creating bitmaps before display creation, creating the displays and the bitmaps stay as memory bitmaps?
I'm creating them after, but I destroy and create displays when I switch between fullscreen and window
Maybe I misunderstood the docs?
"They also will remain video bitmaps if the last display is destroyed and then another is created again." (ALLEGRO_CONVERT_BITMAP). I guess this doesn't mean they will be converted to video bitmaps when you create another display, then?
Seems they just get converted to memory bitmaps and stay that way

@ReiquelApplegate
Copy link
Contributor

The only place ALLEGRO_AUTO_CONVERT_BITMAPS is used in the code is in display.c in al_create_display

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants