mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Enable RGB format for DDS files getting copied to bitmap.
This commit is contained in:
parent
69838bdc8c
commit
f2a3a1e2a6
1 changed files with 2 additions and 2 deletions
|
|
@ -205,8 +205,8 @@ bool GFXD3D9TextureObject::copyToBmp(GBitmap* bmp)
|
||||||
// check format limitations
|
// check format limitations
|
||||||
// at the moment we only support RGBA for the source (other 4 byte formats should
|
// at the moment we only support RGBA for the source (other 4 byte formats should
|
||||||
// be easy to add though)
|
// be easy to add though)
|
||||||
AssertFatal(mFormat == GFXFormatR8G8B8A8, "copyToBmp: invalid format");
|
AssertFatal(mFormat == GFXFormatR8G8B8A8 || mFormat == GFXFormatR8G8B8, "copyToBmp: invalid format");
|
||||||
if (mFormat != GFXFormatR8G8B8A8)
|
if (mFormat != GFXFormatR8G8B8A8 && mFormat != GFXFormatR8G8B8)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
PROFILE_START(GFXD3D9TextureObject_copyToBmp);
|
PROFILE_START(GFXD3D9TextureObject_copyToBmp);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue