mirror of https://github.com/qt/qt3d.git
Fix: remove compile warning in graphicscontext.cpp
Change-Id: I3f1b5cca75973abf8970b3f1929a3a0ea385d8f1 Reviewed-by: Mike Krus <mike.krus@kdab.com>
This commit is contained in:
parent
295b16da92
commit
d0692c6944
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue