Linux compilation problem, better fix

This commit is contained in:
Benoit Bolsee 2009-05-10 21:30:30 +00:00
parent a6721e549d
commit 89c2d80d32
3 changed files with 3 additions and 4 deletions

@ -1105,8 +1105,7 @@ void BL_ConvertActuators(char* maggiename,
buf = txt_to_buf(_2dfilter->text);
if (buf)
{
STR_String buf_str= buf;
tmp->SetShaderText(buf_str);
tmp->SetShaderText(buf);
MEM_freeN(buf);
}
}

@ -95,7 +95,7 @@ bool SCA_2DFilterActuator::Update()
}
void SCA_2DFilterActuator::SetShaderText(STR_String& text)
void SCA_2DFilterActuator::SetShaderText(const char *text)
{
m_shaderText = text;
}

@ -60,7 +60,7 @@ public:
PyTypeObject* T=&Type
);
void SetShaderText(STR_String& text);
void SetShaderText(const char *text);
virtual ~SCA_2DFilterActuator();
virtual bool Update();