mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-01 05:46:06 -04:00
Ditch T(f) define in opencl programs in preference to already-defined real_t.
Also removed some erroneously-added double-'T(' statements
This commit is contained in:
@ -1221,13 +1221,10 @@ bool OpenCLWrapper::CreateSPK(const string& name, const string& program, const s
|
||||
{
|
||||
if (m_Init)
|
||||
{
|
||||
std::string precisionDef(doublePrecision ? "#define T(v) (double)(v)\n" : "#define T(v) (float)(v)\n");
|
||||
std::string p(precisionDef + program);
|
||||
|
||||
cl_int err;
|
||||
|
||||
spk.m_Name = name;
|
||||
spk.m_Source = cl::Program::Sources(1, std::make_pair(p.c_str(), p.length() + 1));
|
||||
spk.m_Source = cl::Program::Sources(1, std::make_pair(program.c_str(), program.length() + 1));
|
||||
spk.m_Program = cl::Program(m_Context, spk.m_Source);
|
||||
|
||||
if (doublePrecision)
|
||||
|
Reference in New Issue
Block a user