Visual artefacts on OS X Dock

weichsel
Unregistered
 
Post: #1
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...ctsgs1.png

How should I initialize GLUT under OS X?
Currently I am using:
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
that looks OK... how often are you redrawing? are you using glutSwapBuffers() ?
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #3
The window compositor can read from your partially drawn back buffer.
There's not much you can do about it in your application.
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #4
Quote: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...
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #5
Capture the display and run fullscreen, so you own the VRAM.
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #6
Yeah, I do that, but I was just curious about if there was a solution for windowed applications. But I guess not, thanks. Smile
Quote this message in a reply
weichsel
Unregistered
 
Post: #7
@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).
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #8
I didn't think there was an alternative, I just wanted to be quite sure Wink

If you're calling glFlush or glFinish, don't -- that might make this problem worse than it need be.
Quote this message in a reply
weichsel
Unregistered
 
Post: #9
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Visual Studio Problems angelinlight 1 2,549 Jul 12, 2010 04:40 PM
Last Post: ThemsAllTook
  Determining dock position and size programmatically scgames 5 4,412 Apr 6, 2009 12:14 PM
Last Post: scgames