PDA

View Full Version : Strange crash of glUseProgram



Ffelagund
01-29-2004, 10:35 AM
Hello, i have an strange crash into my program. With one vertex shader (only that), that are compiled and attached succesfully to the program object, when the program reachs to the glUseProgramObjectARB, i get an exception. Why only with this vp? maybe a bug in the drivers?
(the vp that crashes are this: http://www.clockworkcoders.com/oglsl/tutorial9.htm )
I think that is a bug because crashes too in the 3dlabs demo.

mchristen
01-29-2004, 11:23 AM
I tested this program on a ATI FireGL Z1, ATI 9600SE and 9700 and it works. (Catalyst 4.1)
I don't think I tried that one on 3Dlabs hardware though.

Did you use provided C++ source or used your own source to load the program ?

--Martin

Ffelagund
01-29-2004, 12:05 PM
I had used my own C++ loading code and the 3dlabs glslang demo application, (i have a 3dlabs card) so i suppose that the problem are in the glslang driver, not in the shader. If anyone have a 3dlabs cards, please, try this shader and post the results http://www.opengl.org/discussion_boards/ubb/smile.gif
I posted in 3dlabs forums, but 3dlabs take much time in reply in the forums...


Edit: i compiled and execute the source code of the tutorial and crashes too. It will be a bug in the 3dlabs glslang compiler

[This message has been edited by Ffelagund (edited 01-29-2004).]

mchristen
01-29-2004, 12:32 PM
I will test it on a 3DLabs card tomorrow.

Version 3.01.0.713 of the 3DLabs driver at http://www.schneider-digital.de/html/download_3dlabs.html

On 3DLabs page there is still the one from December... (3.01.0.678)

--Martin

Ffelagund
01-29-2004, 12:51 PM
Incredible!, the 3dLabs web are outdated about their own drivers...
Thank you very much for this link

Edit: With the new driver the vp crashes at glUseProgramObjectARB too

[This message has been edited by Ffelagund (edited 01-29-2004).]

mchristen
01-29-2004, 02:36 PM
Try to change

P = (gl_ModelViewMatrix * gl_Vertex).xyz

to

P = vec3(gl_ModelViewMatrix * gl_Vertex);

Ffelagund
01-30-2004, 12:33 AM
Now the shader works correctly.
Thank you.