RE: [AD] No more video/system bitmaps

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Tue, 2005-06-21 at 12:29 -0700, Robert Ohannessian wrote:

> 
> OpenGL solves this by forcing each thread to draw to different GL
> contexts (undefined behavior occurs if you violate this rule). GL
> functions, before doing any of their work, first look up which thread
> they're in and which context is current for that thread. They then apply
> their state / command to that context.
> 

I think Allegro should do that as well. So, select_bitmap() (or
display/context) would not set a global target bitmap, but a per-thread
target bitmap (display/context).

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/