Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/OpenGL/OpenGLProgram.h @ 1639:5cdc5b98f14d
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 16:41:11 +0100 |
parents | 8563ea5d8ae4 |
children | 9ac2a65d4172 |
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLProgram.h Tue Nov 10 16:26:47 2020 +0100 +++ b/OrthancStone/Sources/OpenGL/OpenGLProgram.h Tue Nov 10 16:41:11 2020 +0100 @@ -35,6 +35,10 @@ class OpenGLProgram : public boost::noncopyable { + private: + OpenGL::IOpenGLContext& context_; + GLuint program_; + public: // WARNING: A global OpenGL context must be active to create this object! // the context is only passed so that it can be checked for loss @@ -52,10 +56,6 @@ GLint GetUniformLocation(const std::string& name); GLint GetAttributeLocation(const std::string& name); - - private: - GLuint program_; - OpenGL::IOpenGLContext& context_; }; } }