Game Development Community

Crash in glGetFloatv

by Steve Lamperti · in Torque Game Engine · 05/02/2005 (4:54 pm) · 5 replies

I'm getting a crash in my mac project when trying to call the snapshot routine.
The code below works on my windows machine, but crashes without any additional information on my mac.

(In my project this code is line 1657 in TSShapeInstance.)

Point4F saveClearColor;
   glGetFloatv(GL_COLOR_CLEAR_VALUE,(F32*)&saveClearColor);


Here's my openGL info from my console in case it's something missing from my video driver.

OpenGL driver information:
Vendor: ATI Technologies Inc.
Renderer: ATi Rage 128 Pro OpenGL Engine
Version: 1.1 ATI-1.3.28
OpenGL Init: Enabled Extensions
ARB_multitexture (Max Texture Units: 2)
EXT_compiled_vertex_array
EXT_texture_env_combine
EXT_packed_pixels
EXT_fog_coord
(ARB|EXT)_texture_env_add
WGL_EXT_swap_control
OpenGL Init: Disabled Extensions
EXT_paletted_texture
NV_vertex_array_range
ARB_texture_compression
EXT_texture_compression_s3tc
3DFX_texture_compression_FXT1
EXT_texture_filter_anisotropic
ATI_FSAA


Anyone have any guesses as to what this is about?

#1
05/26/2005 (8:55 am)
Did the OSX Console have anything to say about the crash?
(/Applications/Utilities/Console.app)
#2
05/26/2005 (9:35 am)
The only thing in the console that looks relevent to the crash is the following line:

May 26 09:31:31 Steves-Mac /Development/CW 7.0/PlanetCarbon: cupsd mach_msg error (ipc/rcv) timed out


I'm afraid I don't really get too much from this.
#3
08/30/2005 (12:24 pm)
Has anyone run the snapshot code on the Mac? It looks like there are several OpenGL calls in there that either aren't supported on the Mac, or are failing for some other reason. I tried working around the glGetFloatv crash, only to crash in glViewport.
#4
08/30/2005 (2:05 pm)
I've taken plenty of screenshots with my Mac build of TGE, and I have the same graphics card as you (ATI Rage 128 Pro). It might just be a driver or OGL issue. I'm running OS X 10.3.9 on an iMac G3 600Mhz and to my knowledge I have never updated the graphics card drivers or the OGL software on my system beyond what ships with OSX (I'm a bad boy, I know).
#5
08/30/2005 (2:20 pm)
I'm building in Codewarrior without Mach-O, so the only openGL library that I have is quite a bit out of date. I now suspect that this is the problem. I'm trying to port my Codewarrior project to XCode. I'll see if that helps.

Thanks for the reply.