Allegro 5 api
#include <allegro5/allegro.h> void al_unlock_bitmap(ALLEGRO_BITMAP *bitmap)
Unlock a previously locked bitmap or bitmap region. If the bitmap is a display bitmap, the texture will be updated to match the system memory copy (unless it was locked read only).
al_lock_bitmap(3alleg5), al_lock_bitmap_region(3alleg5)