summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;