| 1 | --- src/imports/shaders/shadereffectitem.cpp.orig |
| 2 | +++ src/imports/shaders/shadereffectitem.cpp |
| 3 | @@ -509,7 +509,7 @@ void ShaderEffectItem::updateEffectState(const QMatrix4x4 &matrix) |
| 4 | m_program.setUniformValue(name.constData(), qvariant_cast<QTransform>(v)); |
| 5 | break; |
| 6 | case QVariant::Int: |
| 7 | - m_program.setUniformValue(name.constData(), v.toInt()); |
| 8 | + m_program.setUniformValue(name.constData(), GLint(v.toInt())); |
| 9 | break; |
| 10 | case QVariant::Bool: |
| 11 | m_program.setUniformValue(name.constData(), GLint(v.toBool())); |
| 12 | @@ -852,7 +852,7 @@ void ShaderEffectItem::updateShaderProgram() |
| 13 | if (m_program.isLinked()) { |
| 14 | m_program.bind(); |
| 15 | for (int i = 0; i < m_sources.size(); ++i) |
| 16 | - m_program.setUniformValue(m_sources.at(i).name.constData(), i); |
| 17 | + m_program.setUniformValue(m_sources.at(i).name.constData(), (GLint) i); |
| 18 | } |
| 19 | |
| 20 | m_program_dirty = false; |
| 21 | No newline at end of file |