TGB 1.76 Mac Fullscreen not working??
by Blake Drolson · in Torque Game Builder · 01/24/2012 (1:14 am) · 5 replies
Hi there,
Wondering if I am doing something wrong with the Mac version of TGB 1.76. Both my game, and the stock demo games assert with "We utterly failed to choose a valid AGL pixel format.", when we try to make them fullscreen. For the stock demo games, we trigger this with command & enter keys. Does the Mac version do full screen like the PC side, borderless, not just the green plus button (which does a distorted stretch on my widescreen monitor).
In the debugger I traced it into macCarbOGLVideo.cc, inside setScreenMode, where it says ...
fmt = findValidPixelFormat(fullScreen, bpp, 0);
This generates a 0 for fmt when fullscreen is true. I traced inside that the findPixelFormat call and this line also produces a zero for fmt ....
fmt = aglChoosePixelFormat(NULL/*&platState.hDisplay*/,1,attr);
so I see the comment above that line explaining passing in NULL is for osx 10.7 compatability, I am running snow leopard 10.6.8 myself.
Is the fact that I am running snow leopard a problem here?
Wondering if I should go back and download past versions of TGB for the MAC, to see if they go full screen.
Wondering if I am doing something wrong with the Mac version of TGB 1.76. Both my game, and the stock demo games assert with "We utterly failed to choose a valid AGL pixel format.", when we try to make them fullscreen. For the stock demo games, we trigger this with command & enter keys. Does the Mac version do full screen like the PC side, borderless, not just the green plus button (which does a distorted stretch on my widescreen monitor).
In the debugger I traced it into macCarbOGLVideo.cc, inside setScreenMode, where it says ...
fmt = findValidPixelFormat(fullScreen, bpp, 0);
This generates a 0 for fmt when fullscreen is true. I traced inside that the findPixelFormat call and this line also produces a zero for fmt ....
fmt = aglChoosePixelFormat(NULL/*&platState.hDisplay*/,1,attr);
so I see the comment above that line explaining passing in NULL is for osx 10.7 compatability, I am running snow leopard 10.6.8 myself.
Is the fact that I am running snow leopard a problem here?
Wondering if I should go back and download past versions of TGB for the MAC, to see if they go full screen.
About the author
#2
01/24/2012 (2:25 am)
This and TGBGame not responding to input has stopped my work. At least it happens on both SL and Lion, so I won't waste time on reinstalling an older OS.
#3
01/24/2012 (1:12 pm)
Could anyone from Garage Games comment on this issue please? Defiantly a major problem for us....
#4
01/24/2012 (11:58 pm)
I don't have MAC source around to see what's going on there, but aglChoosePixelFormat reference page states that ndev parameter should be 0 when gdevs pointer is NULL, which makes some sense actually.
#5
05/08/2012 (8:38 pm)
The fix for this was posted on the link in the first reply FYI.
Torque Owner Edoardo Chili
Default Studio Name
I've a Mac OSX 10.7 (Lion)
check this post www.garagegames.com/community/forums/viewthread/129341