GLSL: glGetShaderiv problem

Hey,

I wasn’t able to use GLSL shaders for now because of a strange problem with my C++ 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 -> :confused::confused::confused:.

Okey nevermind,

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

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.