mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-25 00:02:31 +00:00
Leave the MyGUI::PixelFormat as Unknown when loading from file as its not required.
This commit is contained in:
parent
8fc7942d64
commit
a759ef5d2e
@ -107,10 +107,7 @@ namespace osgMyGUI
|
|||||||
mWidth = image->s();
|
mWidth = image->s();
|
||||||
mHeight = image->t();
|
mHeight = image->t();
|
||||||
|
|
||||||
// FIXME
|
mUsage = MyGUI::TextureUsage::Static;
|
||||||
mFormat = MyGUI::PixelFormat::R8G8B8;
|
|
||||||
mUsage = MyGUI::TextureUsage::Static | MyGUI::TextureUsage::Write;
|
|
||||||
mNumElemBytes = 3; // FIXME
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OSGTexture::saveToFile(const std::string &fname)
|
void OSGTexture::saveToFile(const std::string &fname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user