Leave the MyGUI::PixelFormat as Unknown when loading from file as its not required.

pull/178/head
scrawl 7 years ago
parent 8fc7942d64
commit a759ef5d2e

@ -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)

Loading…
Cancel
Save