Re: [AD] Open GL bitmaps

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


On March 8, 2008, Peter Hull wrote:
> At the moment I am creating one OpenGL context per display (i.e. per
> window) but the problem has arisen (I see it in exnew_multiwin) that
> the contexts don't share textures (or any other kind of object) so I
> get one window with the Allegro logo and one white one (because
> mysha's bitmap isn't valid in the second context). I can make it so
> each new display will try to share with the first one, but in general
> the contexts aren't guaranteed to be 'shareable' for example if they
> have different colour depths.
>
> Any thoughts on how to handle this?

assume the same colordepth imo. I'm not sure its a good idea to support having 
multiple colordepths going at the same time. To even have that supported at 
the hardware level is becoming rare (X is moving away from that, soon the 
only way that'll work is with separate X connections, XRandR does away with 
having different DISPLAYs for each screen, instead its one display, one 
framebuffer, and multiple views into it).

> Pete
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/



-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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