glShaderSource error

This topic contains 3 replies, has 2 voices, and was last updated by  hoehoe 7 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30328

    hoehoe
    Member

    Hi

     

    I have an error(INVALID_ENUM) when I call glShaderSource after glGetBooleanv( GL_SHADER_COMPILER ).

    If I skip the glGetBooleanv I have no error.

    Can anybody tell me why it occurs?

     

    //error

    glGetBooleanv( GL_SHADER_COMPILER, &has_compiler );

    const GLenum ogl_error_code1 = glGetError(); //this is successful

    glShaderSource( shader, 1, &src_code, &src_len );

    const GLenum ogl_error_code2 = glGetError(); //this returns INVALID_ENUM

     

    //doesnt have error

    /*glGetBooleanv( GL_SHADER_COMPILER, &has_compiler ); */

    glShaderSource( shader, 1, &src_code, &src_len );

    const GLenum ogl_error_code = glGetError(); //this is successful

     

     
    #34465

    hoehoe
    Member

    I’m using WINDOWS PCEMULATION 2.07.27.0484 running on Windows XP sp3.

    #34466

    jacekc
    Member

    Hi,

    This is an unproper error generated by glShaderSource that is related to glGetBooleanv . It will be fixed in a next release. Thanks for information

    #34467

    hoehoe
    Member

    Im looking forward to see it thanks

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.