From 6e39c71243efa8885a346bd2da2a92c69b8c6a10 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 30 Dec 2016 15:54:25 +0100 Subject: [PATCH] [IGfxImage] Try fixing non-streamed images --- src/Components/Modules/AssetInterfaces/IGfxImage.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Components/Modules/AssetInterfaces/IGfxImage.cpp b/src/Components/Modules/AssetInterfaces/IGfxImage.cpp index a4f2739c..09b92c80 100644 --- a/src/Components/Modules/AssetInterfaces/IGfxImage.cpp +++ b/src/Components/Modules/AssetInterfaces/IGfxImage.cpp @@ -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; }