mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Set format in read stream
Forgot to pass the decided format in read from stream
This commit is contained in:
parent
43c2c918c7
commit
8632468a9c
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ bool sReadStreamSTB(Stream& stream, GBitmap* bitmap, U32 len)
|
||||||
case 4: fmt = GFXFormatR8G8B8A8; break;
|
case 4: fmt = GFXFormatR8G8B8A8; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
bitmap->allocateBitmap(width, height, false, GFXFormatA8);
|
bitmap->allocateBitmap(width, height, false, fmt);
|
||||||
|
|
||||||
U8* pBase = bitmap->getWritableBits(0);
|
U8* pBase = bitmap->getWritableBits(0);
|
||||||
U32 rowBytes = bitmap->getByteSize();
|
U32 rowBytes = bitmap->getByteSize();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue