[IGfxImage] Fix for native non-streamed images

This commit is contained in:
momo5502 2016-12-29 15:59:11 +01:00
parent ab7a837ebc
commit 3d7f3482c7

View File

@ -49,8 +49,10 @@ namespace Assets
image->depth = image->loadDef->dimensions[2]; image->depth = image->loadDef->dimensions[2];
image->loaded = true; image->loaded = true;
header->image = image;
} }
else else if(name[0] != '*')
{ {
char nameBuffer[MAX_PATH] = { 0 }; char nameBuffer[MAX_PATH] = { 0 };
Components::Materials::FormatImagePath(nameBuffer, sizeof(nameBuffer), 0, 0, name.data()); Components::Materials::FormatImagePath(nameBuffer, sizeof(nameBuffer), 0, 0, name.data());
@ -123,10 +125,10 @@ namespace Assets
break; break;
} }
} }
}
header->image = image; header->image = image;
} }
}
void IGfxImage::save(Game::XAssetHeader header, Components::ZoneBuilder::Zone* builder) void IGfxImage::save(Game::XAssetHeader header, Components::ZoneBuilder::Zone* builder)
{ {