mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Image format code tweaks.
This commit is contained in:
parent
ef5e3a5271
commit
e32a431a6c
4 changed files with 83 additions and 4 deletions
|
|
@ -301,9 +301,12 @@ void GBitmap::allocateBitmap(const U32 in_width, const U32 in_height, const bool
|
|||
case GFXFormatR5G6B5:
|
||||
case GFXFormatR5G5B5A1: mBytesPerPixel = 2;
|
||||
break;
|
||||
default:
|
||||
AssertFatal(false, "GBitmap::GBitmap: misunderstood format specifier");
|
||||
break;
|
||||
case GFXFormatR16G16B16A16F:
|
||||
case GFXFormatR16G16B16A16: mBytesPerPixel = 8;
|
||||
break;
|
||||
default:
|
||||
AssertFatal(false, "GBitmap::GBitmap: misunderstood format specifier");
|
||||
break;
|
||||
}
|
||||
|
||||
// Set up the mip levels, if necessary...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue