Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: Strange crash of glUseProgram

  1. #1
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Spain
    Posts
    273

    Strange crash of glUseProgram

    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.
    "!I don't know... fly casual"

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2003
    Location
    Switzerland
    Posts
    12

    Re: Strange crash of glUseProgram

    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

  3. #3
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Spain
    Posts
    273

    Re: Strange crash of glUseProgram

    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
    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).]
    "!I don't know... fly casual"

  4. #4
    Junior Member Newbie
    Join Date
    Nov 2003
    Location
    Switzerland
    Posts
    12

    Re: Strange crash of glUseProgram

    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...ad_3dlabs.html

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

    --Martin

  5. #5
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Spain
    Posts
    273

    Re: Strange crash of glUseProgram

    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).]
    "!I don't know... fly casual"

  6. #6
    Junior Member Newbie
    Join Date
    Nov 2003
    Location
    Switzerland
    Posts
    12

    Re: Strange crash of glUseProgram

    Try to change

    P = (gl_ModelViewMatrix * gl_Vertex).xyz

    to

    P = vec3(gl_ModelViewMatrix * gl_Vertex);

  7. #7
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Spain
    Posts
    273

    Re: Strange crash of glUseProgram

    Now the shader works correctly.
    Thank you.
    "!I don't know... fly casual"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •