Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/OpenGL/OpenGLProgram.cpp @ 1639:5cdc5b98f14d
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 16:41:11 +0100 |
parents | 59f95b9ea858 |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1638:754ef576d945 | 1639:5cdc5b98f14d |
---|---|
33 namespace OrthancStone | 33 namespace OrthancStone |
34 { | 34 { |
35 namespace OpenGL | 35 namespace OpenGL |
36 { | 36 { |
37 OpenGLProgram::OpenGLProgram(OpenGL::IOpenGLContext& context) : | 37 OpenGLProgram::OpenGLProgram(OpenGL::IOpenGLContext& context) : |
38 context_(context) | 38 context_(context), |
39 program_(glCreateProgram()) | |
39 { | 40 { |
40 program_ = glCreateProgram(); | |
41 ORTHANC_OPENGL_CHECK("glCreateProgram"); | 41 ORTHANC_OPENGL_CHECK("glCreateProgram"); |
42 | 42 |
43 if (program_ == 0) | 43 if (program_ == 0) |
44 { | 44 { |
45 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, | 45 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, |