Re: [AD] Allegro5 and colors

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


Gillius wrote:

I'd rather Allegro not become state-based like OpenGL.

I would like to try to use Allegro in a multithreaded context, and state based code makes this impossible or at least impractical.

Besides, OpenGL CONSTANTLY confuses me because another unrelated function on the other side of the program has some sort of bug that affects OpenGL state, and it only shows up in another function.

IIRC, only one thread at a time can affect the current context - that is, you need to call wglMakeCurrent() before doing operations from a different thread than the list wglMakeCurrent() - broken drivers asside.

The specs say "You cannot make a rendering context current to multiple threads.", so what you are describing is a driver bug.





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