Call glGetProgramiv to retrieve program log length #4660

Merged
merged 1 commit into from Sep 20, 2016

Conversation

Projects
None yet
3 participants
@jshrake
Contributor

jshrake commented Sep 11, 2016

Calling glGetShaderiv to retrieve the program log length produces a
GL_INVALID_OPERATION error and length < 0, preventing the return of the
actual info log. This fix replaces the call to glGetShaderiv with
glGetProgramiv.

Closes #4659

@jshrake jshrake changed the title from Call glGetProgamiv to retrieve program log length to Call glGetProgramiv to retrieve program log length Sep 11, 2016

Call glGetProgramiv to retrieve program log length
Calling glGetShaderiv to retrieve the program log length produces a
GL_INVALID_OPERATION error and length < 0, preventing the return of the
actual info log. This fix replaces the call to glGetShaderiv with
glGetProgramiv.

Closes #4659

@jshrake jshrake closed this Sep 11, 2016

@jshrake jshrake reopened this Sep 11, 2016

@REAS

This comment has been minimized.

Show comment
Hide comment
@REAS

REAS Sep 19, 2016

Member

FYI @benfry @codeanticode, this one comes from Oblong

Member

REAS commented Sep 19, 2016

FYI @benfry @codeanticode, this one comes from Oblong

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Sep 20, 2016

Member

Yes, glGetProgramiv should be used instead of glGetShaderiv to retrieve the log length, thanks for this PR!

Member

codeanticode commented Sep 20, 2016

Yes, glGetProgramiv should be used instead of glGetShaderiv to retrieve the log length, thanks for this PR!

@codeanticode codeanticode merged commit f27b112 into processing:master Sep 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment