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 5 of 5

Thread: OpenGL Error #132

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2013
    Posts
    3

    OpenGL Error #132

    Fragment shader failed to compile with the following errors:
    ERROR: 0:6: error(#132) Syntax error: "<" parse error
    ERROR: error(#273) 1 compilation errors. No code generated

    The weirdest problem is that I don't even have a < in my code.
    I can't see what my problem is and I am using a tutorial at www.opengl-tutorials.com
    Code :
    #version 410 core
    out vec3 color;
     
    void main(){
    	color = vec3(1, 0, 0);
    }

  2. #2
    Junior Member Newbie
    Join Date
    May 2013
    Posts
    24
    Hi,

    I've already have strange errors like this one. Every time the reason was :

    - I go on internet to found some code
    - I copy/paste some GLSL code from my browser to my source code editor
    - the internet page use a special character code page or UTF8 or whatever
    - GLSL compiler only accept ANSI characters

    => GLSL compilation failed

    The solution is to convert the GLSL code copied from the browser to regular ANSI text, using notepad++ for example.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2013
    Posts
    3
    I copied it by hand and not copy and paste though O.o
    I load it from a file with an std::fstream.

  4. #4
    Junior Member Newbie
    Join Date
    May 2013
    Posts
    24
    So try use GDebugger (or an equivalent) to see what GLSL code did the GPU receive, this is how I found my problem with text encoding, and yours seems very close.

  5. #5
    Junior Member Newbie
    Join Date
    Nov 2013
    Posts
    3
    Debug String: Detected error: The debugged process asked for an extension function pointer (glCreateShader) from one render context, but called this function pointer in another render context (context #2)
    I came up with this, but I don't do anything with a context apart from the way the tutorial has two. but when I create the shader the other context is deleted and says so in gDEBugger (nice program btw)

Posting Permissions

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