Hi all,
Firstly Hi, my name is Ian Hooper from Perth, Western Australia. I’m new to these forums, joined up because I’ve got a hair-puller of a problem with some of my OpenGL code running in Cocoa on OS X 10.5.
Basically it’s little app which plays Quicktime video in an OpenGL context using the QTOpenGLTextureContextCreate stuff, a little like the QTQuartzPlayer example from Apple, except it does some fancy stuff with the video and supports full screen via initWithFormat:shareContext: and using my own event loop…
All was well under 10.4, but since the upgrade to 10.5 the switching to fullscreen has become pretty unreliable. Occasionally it works as it should, usually I get horrible memory-dump type garbage on screen (like chopped up pieces of my textures), and sometimes I just get a black screen and a lockup. It seems quite random.
So far the frequency of it faulting seems proportional to the amount of work OpenGL is doing (e.g low res video fails less than high res video), so maybe it’s something to do with the opengl context change while there’s still stuff in the GL pipeline?
I realise this is a bit of an unusual/specific problem, but if anyone has any ideas I’m all ears!
(For interest, I’ve tried the new enterFullScreenMode: method in 10.5 but I still get problems. And I’m hoping to stick with the 10.4 way of doing things for backwards compatibility, some of the userbase might object to an OS upgrade!)