:eek: but it does not work too. shouldnt the program automatically change to software mode? what should i do to get it working? - i know there is an apple example about it but like alle apple examples it is far too huge… i have also tried to use OpenGL Profilers option to choose the driver - no results…
No compiler, linker problems just no shader results. i am using XCode with glut. i have also tried g++ blabla -framework OpenGL -framework GLUT…
Hardware (should not matter - hardware acceleration is not available anyway i suppose): GeForce FX 5200
Software: 10.4.0
You can use the OpenGL profiler to force a particular pixel format, so you could use GLUT in that way. If that’s not acceptable (eg. you want to give the program to somebody) then you’ll need to use AGL or NSGL to be able to specify the renderer ID in the pixel format.
Remember to check for the presence of all four GLSL extensions before calling any GLSL-related functions.
That certainly should work, and seems to for the GLSLShowpiece example (/Developer/Examples/OpenGL/Cocoa/GLSLShowpiece). Did you remember to request a depth buffer?