summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-03-27 02:34:48 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-03-27 02:34:48 (GMT)
commit96e13b0411ed3f4ef8753edafc41503fc9aceb0f (patch)
tree0f178d79bd5af558ca4ebddd593cedda44622c70 /src/opengl
parent58cbec72215d795948f7ed06cd9e6f199776806b (diff)
downloadQt-96e13b0411ed3f4ef8753edafc41503fc9aceb0f.zip
Qt-96e13b0411ed3f4ef8753edafc41503fc9aceb0f.tar.gz
Qt-96e13b0411ed3f4ef8753edafc41503fc9aceb0f.tar.bz2
Fix loading of partial shaders from files.
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qglshaderprogram.cpp3
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;