From 328a413c59e84d58b3d914aac8b17943ebdfc4f8 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Fri, 24 Jul 2015 11:06:14 +0100 Subject: [PATCH] Fix opencl crash in 'hole' variation --- Source/Ember/Variations02.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Ember/Variations02.h b/Source/Ember/Variations02.h index 45df4af..52f45a5 100644 --- a/Source/Ember/Variations02.h +++ b/Source/Ember/Variations02.h @@ -2726,7 +2726,7 @@ public: string inside = "parVars[" + ToUpper(m_Params[i++].Name()) + index; ss << "\t{\n" - << "\t\treal_t r, delta = pow(precalcAtanyx / M_PI + 1, " << a << ");\n" + << "\t\treal_t r, delta = pow(precalcAtanyx / (real_t)M_PI + 1, " << a << ");\n" << "\n" << "\t\tif (" << inside << " != 0)\n" << "\t\t r = xform->m_VariationWeights[" << varIndex << "] * delta / (precalcSqrtSumSquares + delta);\n"