I am using the following code, which should clear the screen with black color, but it is blue.
#define ALLEGRO_STATICLINK
#include <allegro5/allegro.h>
int main()
{
al_init();
ALLEGRO_DISPLAY* display = al_create_display(800, 600);
al_clear_to_color(al_map_rgb(0, 0, 0));
al_flip_display();
al_rest(5.0);
return 0;
}