Explorar o código

Enable RGB format for DDS files getting copied to bitmap.

Lukas Joergensen %!s(int64=11) %!d(string=hai) anos
pai
achega
f2a3a1e2a6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Engine/source/gfx/D3D9/gfxD3D9TextureObject.cpp

+ 2 - 2
Engine/source/gfx/D3D9/gfxD3D9TextureObject.cpp

@@ -205,8 +205,8 @@ bool GFXD3D9TextureObject::copyToBmp(GBitmap* bmp)
    // check format limitations
    // at the moment we only support RGBA for the source (other 4 byte formats should
    // be easy to add though)
-   AssertFatal(mFormat == GFXFormatR8G8B8A8, "copyToBmp: invalid format");
-   if (mFormat != GFXFormatR8G8B8A8)
+   AssertFatal(mFormat == GFXFormatR8G8B8A8 || mFormat == GFXFormatR8G8B8, "copyToBmp: invalid format");
+   if (mFormat != GFXFormatR8G8B8A8 && mFormat != GFXFormatR8G8B8)
       return false;
 
    PROFILE_START(GFXD3D9TextureObject_copyToBmp);