fixed the problem

This commit is contained in:
Anakin 2017-01-15 12:33:57 +01:00
parent 6ead5d7bc6
commit b8f8a5c2ad
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ private:
void readVertex(Segment* dataDestination, std::streampos position);
void readUV(Segment* dataDestination, std::streampos position);
void loadTexture(QOpenGLTexture* destination, QString filepath);
void loadTexture(QOpenGLTexture*& destination, QString filepath);
QMatrix4x4 getParentMatrix(std::string parent) const;
QQuaternion getParentRotation(std::string parent) const;

View File

@ -622,7 +622,7 @@ void MshFile::readUV(Segment * dataDestination, std::streampos position)
m_file.read(F2V(dataDestination->vertices[i].texCoord[j]), sizeof(float));
}
void MshFile::loadTexture(QOpenGLTexture * destination, QString filepath)
void MshFile::loadTexture(QOpenGLTexture *& destination, QString filepath)
{
bool loadSuccess(false);
QImage img;