Allegro Throws errors when trying to draw lines
<p>For some reason allegro (C++ Game Engine), throws errors when i try to run... So first this code works fine ! :</p>

<pre><code>#include &lt;allegro5/allegro.h&gt;
#include &lt;allegro5/allegro_primitives.h&gt;

int main(void)
{
    int width = 640, height = 480;
       ALLEGRO_DISPLAY *display = NULL;

    if (!al_init()) 
       return -1;


       display = al_create_display(width, height);


   if (!display) 
       return -1;


        al_flip_display();

        //al_draw_line(100, 100, width - 100, 100, al_map_rgb(255, 0, 0), 1);
        al_rest(3);


           al_destroy_display(display);
       return 0;
    }
</code></pre>

<p>But all the sudden when i try to uncomment that line above i get this "error".
<a href="https://i.stack.imgur.com/SIvnU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SIvnU.png" alt="enter image description here"></a></p>

<p>More Closer Up:</p>

<p><a href="https://i.stack.imgur.com/LB4EG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LB4EG.png" alt="enter image description here"></a></p>

<p>As you can see above this is some type of assertion failling... Im Confused?! Help would be appreciated!</p>