Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: forward declaring functions

  1. #11
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: forward declaring functions

    I don't mind barking, I think it's great - but crashing the application is not acceptable.
    The thing is, lots of these weird things happen in more complicated shaders, not in simple test cases.
    Knackered

  2. #12
    Junior Member Regular Contributor Zulfiqar Malik's Avatar
    Join Date
    Jun 2004
    Location
    London, UK
    Posts
    247

    Re: forward declaring functions

    vec3 v(1, 1, 1) seems to work fine on my GLSL compiler (6800GT & 78.01). I have tried such syntax with older driver versions and older hardware (FX5700 ultra). ATI on the other hand did not compile the shader properly and in accordance with opengl specs.
    As for crashing, are you sure that the compile crashes your application or the usage of the shader later on in the application?
    Zulfiqar Inayat Malik.
    Senior Developer, The Foundry.

  3. #13
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: forward declaring functions

    I compile on first usage. It was the compile that crashed.
    I can't believe people haven't experienced similar problems in arbitary shaders.
    Knackered

Posting Permissions

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