[IGfxImage] Try fixing non-streamed images

This commit is contained in:
momo5502 2016-12-30 15:54:25 +01:00
parent 67a4e5c598
commit 6e39c71243

View File

@ -49,6 +49,14 @@ namespace Assets
image->depth = image->loadDef->dimensions[2];
image->loaded = true;
image->loadDef->flags = 0;
if (Utils::String::StartsWith(name, "*lightmap"))
{
image->loadDef->dimensions[0] = 0;
image->loadDef->dimensions[1] = 2;
image->loadDef->dimensions[2] = 0;
}
header->image = image;
}