Skip to content

Commit

Permalink
Fixed mistake in cOpenClEngine::Build. The program was not recompiled…
Browse files Browse the repository at this point in the history
… when definesCollector was changed.
  • Loading branch information
buddhi1980 committed May 31, 2017
1 parent 206b892 commit 04ce19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mandelbulber2/src/opencl_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ bool cOpenClEngine::Build(const QByteArray &programString, QString *errorText)

// calculating hash code of build parameters
QCryptographicHash hashCryptBuildParams(QCryptographicHash::Md4);
hashCryptBuildParams.addData(programString);
hashCryptBuildParams.addData(definesCollector.toLocal8Bit());
QByteArray hashBuildParams = hashCryptBuildParams.result();

// if program is different than in previous run
Expand Down

0 comments on commit 04ce19d

Please sign in to comment.