Re: [AD] Primitives not drawing without glFlush on Intel (Windows 7)

[ Thread Index | Date Index | More Archives ]

I've found that putting a glFlush in draw_prim_raw (and draw_prim_indexed_raw for completeness) fixes it. Is this a problem in any way?


-----Original Message----- From: Trent Gamblin
Sent: Saturday, May 11, 2013 6:44 PM
To: alleg-developers@xxxxxxxxxx
Subject: [AD] Primitives not drawing without glFlush on Intel (Windows 7)

When  I'm drawing primitives on this new netbook with Intel graphics (I
think it's when drawing 2+ high level primitives in a row, like rectangles
and triangles), the later drawn primitives sometimes do not show up unless I
call glFlush after drawing all of the primitives. Is there anything that can
be done about it? An example:

al_draw_filled_rectangle(startx, y+1, endx, y+3+(thick ? 1 : 0),
al_draw_filled_rectangle(startx, y+1, startx+length, y+2, darker);
al_draw_filled_rectangle(startx, y+2, startx+length, y+3+(thick ? 1 : 0),
// Don't know why but my netbook needs this
if (al_get_display_flags(engine->get_display()) & ALLEGRO_OPENGL) {

al_draw_tinted_bitmap(left, gauge_hilight_color, x, y, 0);


Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today!

Mail converted by MHonArc 2.6.19+