diff --git a/wrap/gl/splatting_apss/splatrenderer.h b/wrap/gl/splatting_apss/splatrenderer.h index f70eba57..4a8d78a6 100644 --- a/wrap/gl/splatting_apss/splatrenderer.h +++ b/wrap/gl/splatting_apss/splatrenderer.h @@ -163,7 +163,7 @@ QString SplatRenderer::loadSource(const QString& func,const QString& f QFile f(":/SplatRenderer/shaders/" + filename); if (!f.open(QFile::ReadOnly)) { - std::cerr << "failed to load shader file " << filename.toAscii().data() << "\n"; + std::cerr << "failed to load shader file " << filename.toUtf8().data() << "\n"; return res; } else qDebug("Succesfully loaded shader func '%s' in file '%s'",qPrintable(func),qPrintable(filename)); @@ -207,8 +207,8 @@ void SplatRenderer::configureShaders() { QString vsrc = shading + defines + mShaderSrcs[k*2+0]; QString fsrc = shading + defines + mShaderSrcs[k*2+1]; - mShaders[k].SetSources(mShaderSrcs[k*2+0]!="" ? vsrc.toAscii().data() : 0, - mShaderSrcs[k*2+1]!="" ? fsrc.toAscii().data() : 0); + mShaders[k].SetSources(mShaderSrcs[k*2+0]!="" ? vsrc.toUtf8().data() : 0, + mShaderSrcs[k*2+1]!="" ? fsrc.toUtf8().data() : 0); mShaders[k].prog.Link(); if (mShaderSrcs[k*2+0]!="") {