Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dialog Disappearance



On 12/17/00 12:39 PM, Erik Rufelt wrote:

> In all my fullscreen OpenGL apps dialogs sometimes doesn't show up, it goes
> for both ISpConfigure() dialog and other dialog windows... has this got
> something to do with double buffering and it ending up in the back buffer or
> something?
> How can I fix this?

Not sure this is a 100% solution, but it works for me:

Track aglSwapBuffers with a global Boolean

Boolean gSwapBufferTracker=0;

...

draw page

aglSwapBuffers(context);
gSwapBufferTracker ^= 1;

...

When you want to display a dialog, simply check gSwapBufferTracker, if 1,
you'll need to aglSwapBuffers to return to the original front buffer.

-Roland


References: 
 >Dialog Disappearance (From: Erik Rufelt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.