Full screen context doesn't remain the current context

Member
Posts: 257
Joined: 2004.06
Post: #1
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.

The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
If you're using NSOpenGLView, it likes to set the context to its own.

Which code of mine are you using?
Quote this message in a reply
Member
Posts: 257
Joined: 2004.06
Post: #3
The "CocoaToggleFullScreen" example project from your book.

The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
Yeah, that looks like complete rubbish :|

Try this approach instead: http://onesadcookie.com/trac/browser/Gam...rce/MacOSX
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  SDL. Current music position e40pud 0 2,300 Mar 9, 2010 08:46 AM
Last Post: e40pud
  Full Screen OpenGL Crashes Blacktiger 13 7,799 Feb 19, 2009 02:39 PM
Last Post: backslash
  OpenGL full screen mode leaves garbage on screen when exiting app Malarkey 5 5,288 Nov 19, 2008 12:51 PM
Last Post: Malarkey
  Changing resolution while already in full-screen mode? Malarkey 1 2,656 Jun 10, 2008 07:49 PM
Last Post: AnotherJake
  Full Screen Switching Blacktiger 3 3,613 Feb 9, 2008 03:05 PM
Last Post: Blacktiger