Fix: remove compile warning in graphicscontext.cpp

Change-Id: I3f1b5cca75973abf8970b3f1929a3a0ea385d8f1
Reviewed-by: Mike Krus <mike.krus@kdab.com>
This commit is contained in:
Paul Lemire 2018-08-20 10:42:04 +02:00
parent 295b16da92
commit d0692c6944
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ QOpenGLShaderProgram *GraphicsContext::createShaderProgram(Shader *shaderNode)
const auto shaderCode = shaderNode->shaderCode();
QString logs;
for (int i = QShaderProgram::Vertex; i <= QShaderProgram::Compute; ++i) {
QShaderProgram::ShaderType type = static_cast<const QShaderProgram::ShaderType>(i);
const QShaderProgram::ShaderType type = static_cast<const QShaderProgram::ShaderType>(i);
if (!shaderCode.at(i).isEmpty()) {
// Note: logs only return the error but not all the shader code
// we could append it