When I resize the display I acknowledge it with al_acknowledge_resize but if I try to draw to a bitmap I created at the start of the program again it crashes. If I try to recreate this bitmap it still crashes. I have already narrowed it down to this; when the al_set_target_bitmap( bitmap ) is removed it doesn't crash.
Was this a known bug and has it been fixed?
I'm on Allegro 5.2.0. Windows 10, DirectX driver (I assume)
It's been a while since I attempted to build Allegro or anything written in C++ for that matter (I work in SwiftForth). I'd prefer not to go down that rabbit hole again... (though I might finally get on the contributor train, since I'm pretty good at git now...)
I found a 5.2.1 DLL Siegelord posted but it fails to load; I suspect due to missing dependencies (which is odd because it was the monolith build...) The thread was about a bug with the builtin font after resizing so it could be related. (https://www.allegro.cc/forums/thread/616340)
I found the 5.2.2 release and fixed the loading problem. Looks like the bitmap bug was fixed.
After confirming that, I thought of an alternative approach; create the window at the native resolution and DON'T acknowledge resizes. Immediately resize it to the desired size. There'll be a blip where you see a big window but this is minor. This way contents of bitmaps are not lost and there will be no delay when resizing or fullscreening.