comparison OrthancStone/Sources/OpenGL/OpenGLShader.cpp @ 1571:85e117739eca

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 17:46:39 +0200
parents 244ad1e4e76a
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1570:9a04f42098a3 1571:85e117739eca
77 } 77 }
78 } 78 }
79 79
80 80
81 OpenGLShader::OpenGLShader(GLenum type, 81 OpenGLShader::OpenGLShader(GLenum type,
82 const std::string& source) 82 const std::string& source) :
83 shader_(CompileShader(type, source))
83 { 84 {
84 shader_ = CompileShader(type, source);
85 isValid_ = true; 85 isValid_ = true;
86 } 86 }
87 87
88 88
89 OpenGLShader::~OpenGLShader() 89 OpenGLShader::~OpenGLShader()