View Full Version : Visual artefacts on OS X Dock
weichsel
2007.09.17, 04:51 PM
I just compiled my game under OS X and noticed that I get some artefacts if I place my game window above the dock and start to hover over the icons.
Screen:
http://img504.imageshack.us/my.php?image=artefactsgs1.png
How should I initialize GLUT under OS X?
Currently I am using:
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
OneSadCookie
2007.09.17, 04:56 PM
that looks OK... how often are you redrawing? are you using glutSwapBuffers() ?
arekkusu
2007.09.17, 10:45 PM
The window compositor can read from your partially drawn back buffer.
There's not much you can do about it in your application.
Fenris
2007.09.18, 02:34 AM
The window compositor can read from your partially drawn back buffer.
There's not much you can do about it in your application.
Are you sure there is nothing we can do about it? It's extremely annoying as it makes the Bezel services (among others) look like absolute crap, and impedes taking screenshots...
arekkusu
2007.09.18, 02:40 AM
Capture the display and run fullscreen, so you own the VRAM.
Fenris
2007.09.18, 06:44 AM
Yeah, I do that, but I was just curious about if there was a solution for windowed applications. But I guess not, thanks. :)
weichsel
2007.09.23, 06:22 AM
@OneSadCookie: Yes I am using glutSwapBuffers(). What would be my alternative?
I also have redrawing problems if I use the OS X zoom feature (ctrl + scroll).
OneSadCookie
2007.09.23, 08:09 AM
I didn't think there was an alternative, I just wanted to be quite sure ;)
If you're calling glFlush or glFinish, don't -- that might make this problem worse than it need be.
weichsel
2007.09.23, 09:03 AM
hmm. I just double checked my code. No, I call neither. Any suggestions?
I tried some other OS X OpenGL Programs using GLUT (including the GLUTExamples.xcodeproj sample) that comes with Apples developer examples.
It seems that only my applications has those drawing issues. I will investigate that problem and post my results. thx so far.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.