Ticket #31879: qt4-mac-svn.diff

File qt4-mac-svn.diff, 1.8 KB (added by michaelld (Michael Dickens), 13 years ago)

trial patch for qt4-mac to address ticket issue

  • files/patch-src-imports-shaders-shadereffectitem.cpp.diff

     
     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
  • Portfile

     
    9999# < http://labs.qt.nokia.com/2011/09/07/ >
    100100patchfiles-append   patch-blacklist-diginotar-certs.diff
    101101
     102# (10) from Qt bugs (#18346), fix shader effect item code.
     103patchfiles-append   patch-src-imports-shaders-shadereffectitem.cpp.diff
     104
    102105# find a way to specify the OS MINOR version.
    103106global MINOR
    104107set MINOR ""