Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: Spooky_

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    13,012

    Re: Problem with #version

    //nvm, got it :D... no \n are read with my file read function
  2. Replies
    14
    Views
    13,012

    Re: Problem with #version

    Yes, but it doesn't work on NVidia either. The error gets even weirder there!


    0(1) : error C0129: invalid char 'i' in integer constant suffix
    0(1) : error C0129: invalid char 'n' in integer...
  3. Replies
    14
    Views
    13,012

    Re: Problem with #version

    Btw. the 'syntax error' happens with any preprocessor statement. Even with just #line 1 for example.
  4. Replies
    14
    Views
    13,012

    Re: Problem with #version

    Oh ok, looks like I have to create an OpenGL 3 context, if I want to use inverse() in the shader.




    Well, this is an excerpt of the beginning of the shader
    #version 130

    in vec4...
  5. Replies
    14
    Views
    13,012

    Problem with #version

    I am having some trouble with the
    #versionpreprocessor statement. When I use
    #version 130for example I get the following error:
    Vertex shader failed to compile with the following errors:
    ERROR:...
Results 1 to 5 of 5