Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/OpenGL/OpenGLShader.cpp @ 2041:85a20cbfcc04 deep-learning
check glUseProgram()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Feb 2023 08:23:26 +0100 |
parents | c6263f514f54 |
children | fdb012c86a75 |
comparison
equal
deleted
inserted
replaced
2040:c6263f514f54 | 2041:85a20cbfcc04 |
---|---|
56 ORTHANC_OPENGL_CHECK("glCompileShader"); | 56 ORTHANC_OPENGL_CHECK("glCompileShader"); |
57 | 57 |
58 GLenum error = glGetError(); | 58 GLenum error = glGetError(); |
59 | 59 |
60 // Check if there were errors | 60 // Check if there were errors |
61 int infoLen = 0; | 61 GLint infoLen = 0; |
62 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); | 62 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); |
63 ORTHANC_OPENGL_CHECK("glGetShaderiv"); | 63 ORTHANC_OPENGL_CHECK("glGetShaderiv"); |
64 | 64 |
65 if (infoLen > 1) // Might be equal to 1, which amounts to no error | 65 if (infoLen > 1) // Might be equal to 1, which amounts to no error |
66 { | 66 { |