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

Thread: GLSL: glGetShaderiv problem

  1. #1
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    4

    GLSL: glGetShaderiv problem

    Hey,

    I wasn't able to use GLSL shaders for now because of a strange problem with my C++ code:

    Code :
        int status = 1337;
        glGetShaderiv(shaderref, GL_COMPILE_STATUS, &status);
        std::cout << status << std::endl;
        std::cout << glGetError();

    The call of glGetShaderiv isn't changing my variable int status, it's still 1337.
    However glGetError() is returning 0.

    The API says here that this behaviour only appears when an error is generated -> .

  2. #2
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    4
    Okey nevermind,

    creating a new project in Code::Blocks fixxed it magically.

Posting Permissions

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