diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-03-27 02:34:48 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-03-27 02:34:48 (GMT) |
commit | 96e13b0411ed3f4ef8753edafc41503fc9aceb0f (patch) | |
tree | 0f178d79bd5af558ca4ebddd593cedda44622c70 /src/opengl/qglshaderprogram.cpp | |
parent | 58cbec72215d795948f7ed06cd9e6f199776806b (diff) | |
download | Qt-96e13b0411ed3f4ef8753edafc41503fc9aceb0f.zip Qt-96e13b0411ed3f4ef8753edafc41503fc9aceb0f.tar.gz Qt-96e13b0411ed3f4ef8753edafc41503fc9aceb0f.tar.bz2 |
Fix loading of partial shaders from files.
Diffstat (limited to 'src/opengl/qglshaderprogram.cpp')
-rw-r--r-- | src/opengl/qglshaderprogram.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/opengl/qglshaderprogram.cpp b/src/opengl/qglshaderprogram.cpp index 3c19434..5738acd 100644 --- a/src/opengl/qglshaderprogram.cpp +++ b/src/opengl/qglshaderprogram.cpp @@ -573,9 +573,6 @@ bool QGLShader::setSourceCode(const QString& source) */ bool QGLShader::setSourceCodeFile(const QString& fileName) { - if (!d->shader) - return false; - QFile file(fileName); if (!file.open(QFile::ReadOnly)) { qWarning() << "QGLShader: Unable to open file" << fileName; |