Full screen context doesn't remain the current context
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).
If you're using NSOpenGLView, it likes to set the context to its own.
Which code of mine are you using?
Which code of mine are you using?
The "CocoaToggleFullScreen" example project from your book.
The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Yeah, that looks like complete rubbish :|
Try this approach instead: http://onesadcookie.com/trac/browser/Gam...rce/MacOSX
Try this approach instead: http://onesadcookie.com/trac/browser/Gam...rce/MacOSX
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| SDL. Current music position | e40pud | 0 | 1,895 |
Mar 9, 2010 08:46 AM Last Post: e40pud |
|
| Full Screen OpenGL Crashes | Blacktiger | 13 | 6,591 |
Feb 19, 2009 02:39 PM Last Post: backslash |
|
| OpenGL full screen mode leaves garbage on screen when exiting app | Malarkey | 5 | 4,497 |
Nov 19, 2008 12:51 PM Last Post: Malarkey |
|
| Changing resolution while already in full-screen mode? | Malarkey | 1 | 2,273 |
Jun 10, 2008 07:49 PM Last Post: AnotherJake |
|
| Full Screen Switching | Blacktiger | 3 | 3,041 |
Feb 9, 2008 03:05 PM Last Post: Blacktiger |
|

