Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: aglSetFullScreen - Blank Screen




We've produced many products that switch between FS and windowed mode for years now and haven't gotten any reports resembling what you described.


My best guess would be to look into how you're creating the context, namely, the pixel format that you're using (you didn't include that in your code!). For starters, if you're using the same pixel format for both modes, AGL_FULLSCREEN will be set for both or none, so that could easily be a problem. We use aglChoosePixelFormat() each time we create a context rather than reuse it (and don't forget aglDestroyPixelFormat()).


- Andy






On May 19, 2008, at 11:27 AM, Chris Bentley wrote:

Hi Jason, Patrick,

I'm pretty sure this bug is resolved in the next software update. If you have access to the seed builds, you can verify.

chrisb

On May 19, 2008, at 10:42 AM, Jason Green wrote:

What hardware/OS are you running on? We've seen this issue as well (well, using the equivalent CGL function) on 10.5.2 with ATI R500 and R600 cards. We filed rdar://5787567 about it. In our case, you could sometimes work around it by turning off VSync (disabling kCGLCPSwapInterval), but that didn't work all the time.

On May 19, 2008, at 10:21 AM, Patrick Rutkowski wrote:

Let me say in advance that I haven't the slightest clue what's wrong here,
and I've been banging my head against the wall for a few hours now;
so any help would be very greatly appreciated.


I have this application which I want to be able to switch between
full screen mode and windowed mode on command without
relaunching the app.

So I wrote up the code, but there's just this one problem. Whenever
I switch from windowed mode to FS mode I get a blank screen.
If I start the app initially in FS mode then the FS mode works OK.
I can then hit 'F' (the key I assigned for the task), to switch it to windowed
mode. Hitting 'F' again should bring it back to FS mode, but instead
I just get a blank screen.


The code that sets up the fullscreen mode can be found here:
http://www.rutski89.com:31597/upload/fs.txt

Remember, it works on the first call, yet fails on the second;
and I just can't figure out why. By "fails" I don't mean a return
value of GL_FALSE, I just mean that the screen goes black.

-Patrick

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

Jason Green Developer, TransGaming, Inc. email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden


Chris Bentley Mac 3D Manager Advanced Micro Devices, Inc. 62 Forest St Marlborough MA, 01752

Email:  email@hidden
cell:      (508) 259-2139
direct:  (508) 303-3919
main:   (508) 303-3900
fax:       (508) 303-3920




_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >aglSetFullScreen - Blank Screen (From: Patrick Rutkowski <email@hidden>)
 >Re: aglSetFullScreen - Blank Screen (From: Jason Green <email@hidden>)
 >Re: aglSetFullScreen - Blank Screen (From: Chris Bentley <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.