- fixed compile time errors with qt 5.0
This commit is contained in:
parent
5f59f1fa5a
commit
6b7ca162ce
|
@ -163,7 +163,7 @@ QString SplatRenderer<MeshType>::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<MeshType>::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]!="")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue