Bug in glGetShaderiv / GL_SHADER_SOURCE_LENGTH

This topic contains 1 reply, has 2 voices, and was last updated by  chris 3 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31545

    airion
    Member

    I want to report the following bug in the GLES2/EGL emulation libraries:

    The shader length returned by glGetShaderiv(handle, GL_SHADER_SOURCE_LENGTH, …) is incorrect. The returned value is to small by one.

    As the Khronous specification says, it returns the length of the concatenation of the source strings that make up the shader source for the shader, including the null termination character.

    It seems that the PVR emulation driver does not count the null termination character.

    #38217

    chris
    Moderator

    Thanks for the bug report Airion, this will be fixed in the next release.

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