mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Image format code tweaks.
This commit is contained in:
parent
b4a1d18f42
commit
0c3fc59ccc
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