From a759ef5d2e698be0c33295be519830d743e2dc7c Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 1 Mar 2017 18:59:01 +0100 Subject: [PATCH] Leave the MyGUI::PixelFormat as Unknown when loading from file as its not required. --- components/myguiplatform/myguitexture.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/myguiplatform/myguitexture.cpp b/components/myguiplatform/myguitexture.cpp index e8fd81bfe..a3b70eac9 100644 --- a/components/myguiplatform/myguitexture.cpp +++ b/components/myguiplatform/myguitexture.cpp @@ -107,10 +107,7 @@ namespace osgMyGUI mWidth = image->s(); mHeight = image->t(); - // FIXME - mFormat = MyGUI::PixelFormat::R8G8B8; - mUsage = MyGUI::TextureUsage::Static | MyGUI::TextureUsage::Write; - mNumElemBytes = 3; // FIXME + mUsage = MyGUI::TextureUsage::Static; } void OSGTexture::saveToFile(const std::string &fname)