D3D9: Fixed RGBA8 texture format.

This commit is contained in:
Branimir Karadžić
2015-04-08 22:41:19 -07:00
parent a3a1ed112b
commit c69f29cb36
2 changed files with 14 additions and 4 deletions

View File

@@ -2122,6 +2122,10 @@ namespace bgfx
imageCheckerboard(_width, _height, 16, UINT32_C(0xff000000), UINT32_C(0xffffffff), _dst);
break;
case TextureFormat::RGBA8:
imageSwizzleBgra8(_width, _height, _pitch, _src, _dst);
break;
default:
// Decompression not implemented... Make ugly red-yellow checkerboard texture.
imageCheckerboard(_width, _height, 16, UINT32_C(0xffff0000), UINT32_C(0xffffff00), _dst);