Results 1 to 4 of 4

Thread: [SFML/C++] Linking shader returns GL_FALSE, but no log, and no output on screen

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

    Question [SFML/C++] Linking shader returns GL_FALSE, but no log, and no output on screen

    Hello
    So I'm follow this: ogldev.atspace.co.uk/www/tutorial04/tutorial04.html tutorial in order to learn OpenGL. And currently I'm learning to use shaders, however, when I'm linking my shader program, "glGetProgramiv" returns GL_FALSE but there's no error log from "glGetProgramInfoLog".

    I'm currently programming on Xubuntu (Ubuntu 12.10), and using the "NVIDIA binary Xorg driver, kernel module and VDPAU library from nvidia-current (proprietary, tested)" driver. On a Geforce GTX 560 Ti if that matters. But anyway, below is a link to my code, the first page is my main.cpp file where I run the rendering and gameloop, and in the symGL file i have a little utility class for loading shaders. Any idea what's the problem?

    Code: gist.github.com/4592760
    Output: i.imgur.com/QNE67JX.png

    Source code of the vertex shader can be found in the output image as well.

  2. #2
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,677
    however, when I'm linking my shader program, "glGetProgramiv" returns GL_FALSE
    glGetProgramiv can "return" many values; what exactly is the line of code that is giving you GL_FALSE?

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2013
    Posts
    3
    Quote Originally Posted by Alfonse Reinheart View Post
    glGetProgramiv can "return" many values; what exactly is the line of code that is giving you GL_FALSE?
    In sym.cpp, line 51

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2013
    Posts
    3
    I solved the problem, when checking for linking errors, I was passing my shader object, and not the program object. Everything is working fine now

Similar Threads

  1. GLSL Circle Program Linking Issues. Blank Output
    By folar415 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-19-2018, 12:11 PM
  2. Replies: 1
    Last Post: 03-20-2014, 02:33 PM
  3. Replies: 5
    Last Post: 06-14-2012, 08:38 PM
  4. Replies: 4
    Last Post: 06-06-2002, 10:52 PM
  5. The Gray Screen Of Death Returns
    By stafford in forum OpenGL: User Software
    Replies: 5
    Last Post: 08-03-2001, 03:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean