Update XGfxImage parsing logic
This commit is contained in:
parent
51a0d00b93
commit
e416d47df4
@ -28,6 +28,8 @@ XGfxImage::~XGfxImage()
|
|||||||
|
|
||||||
void XGfxImage::ParseData(QDataStream *aStream)
|
void XGfxImage::ParseData(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
|
if (GetPtr() == -1)
|
||||||
|
{
|
||||||
*aStream >> mMapType;
|
*aStream >> mMapType;
|
||||||
|
|
||||||
mTexture.ParseData(aStream);
|
mTexture.ParseData(aStream);
|
||||||
@ -66,6 +68,7 @@ void XGfxImage::ParseData(QDataStream *aStream)
|
|||||||
}
|
}
|
||||||
// TODO: This is wrong
|
// TODO: This is wrong
|
||||||
mTexture.ParseData(aStream);
|
mTexture.ParseData(aStream);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void XGfxImage::Clear()
|
void XGfxImage::Clear()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user