iDevGames Forums
Full screen context doesn't remain the current context - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Full screen context doesn't remain the current context (/thread-3520.html)



Full screen context doesn't remain the current context - Malarkey - Feb 1, 2007 02:40 PM

I have this sort of wacky conundrum that I can't seem to figure out. I'm using OSC's Cocoa code to create and display a full screen context but between setting my full screen context to be the current context and drawRect, the current context gets reset back to the original windowed context. Anyone have any ideas why this might be the case? The sample project included works fine and I pretty much brought everything over as is so at this point, I'm confounded.


Full screen context doesn't remain the current context - OneSadCookie - Feb 1, 2007 02:53 PM

If you're using NSOpenGLView, it likes to set the context to its own.

Which code of mine are you using?


Full screen context doesn't remain the current context - Malarkey - Feb 1, 2007 03:46 PM

The "CocoaToggleFullScreen" example project from your book.


Full screen context doesn't remain the current context - OneSadCookie - Feb 1, 2007 05:27 PM

Yeah, that looks like complete rubbish :|

Try this approach instead: http://onesadcookie.com/trac/browser/GameShell/Source/MacOSX