al_destroy_display
void al_destroy_display(ALLEGRO_DISPLAY *display)
Introduced in 5.0.0
Destroy a display.
If the target bitmap of the calling thread is tied to the display, then it implies a call to "al_set_target_bitmap(NULL);" before the display is destroyed.
That special case notwithstanding, you should make sure no threads are currently targeting a bitmap which is tied to the display before you destroy it.
See also: al_set_target_bitmap
Examples: ex_blend_bench, ex_display_options, ex_drawpixels, ex_dualies, ex_fs_resize, ex_fs_window, ex_mouse_focus, ex_multiwin, ex_noframe, ex_resize2, ex_threads, ex_threads2, ex_warp_mouse, ex_windows, ex_winfull
Most helpful discussions:
- Allegro 5.2.2 Setup
- Weird issue with font, can anybody help?
- Blacking out the display while resizing
- KrampusHack 2016
- Bitmap behind mappy map
- Statically link Allegro 5 in Ubuntu?
- Vsync-Dependent Game Loop
- [A5] Show & Hide window/display Cross-Platform ?
- Why some Shaders don't work !
- Change adapter un runtime
Other recent discussions:
- Mixing Allegro 5 with OPENGL
- save display window as image(png,jpg)
- Advice for game loops with lengthy computations
- A5 compiled fine, but can't compile against the library
- Font loading crashing with Allegro 5.2
- Inconstistent joystick event delay
- Running Allegro C++ code in Geany
- Proper Way to switch from Windowed to Fullscreen during runtime
- RPG Player
- Image Keyboard