diff options
Diffstat (limited to 'guilib/DirectXGraphics.cpp')
-rw-r--r-- | guilib/DirectXGraphics.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/guilib/DirectXGraphics.cpp b/guilib/DirectXGraphics.cpp index 5563b51304..3a3d107c46 100644 --- a/guilib/DirectXGraphics.cpp +++ b/guilib/DirectXGraphics.cpp @@ -22,6 +22,7 @@ #include "DirectXGraphics.h" #include "Texture.h" #include "FileSystem/File.h" +#include "XBTF.h" LPVOID XPhysicalAlloc(SIZE_T s, DWORD ulPhysicalAddress, DWORD ulAlignment, DWORD flProtect) { @@ -394,7 +395,7 @@ void GetTextureFromData(D3DTexture *pTex, void *texData, CBaseTexture **ppTextur DWORD width, height, pitch, offset; ParseTextureHeader(pTex, fmt, width, height, pitch, offset); - *ppTexture = new CTexture(width, height, 32); + *ppTexture = new CTexture(width, height, 32, XB_FMT_B8G8R8A8); if (*ppTexture) { @@ -446,9 +447,9 @@ void GetTextureFromData(D3DTexture *pTex, void *texData, CBaseTexture **ppTextur } if (IsPalettedFormat(fmt)) - (*ppTexture)->LoadPaletted(width, height, pitch, texDataStart, color); + (*ppTexture)->LoadPaletted(width, height, pitch, XB_FMT_B8G8R8A8, texDataStart, color); else - (*ppTexture)->LoadFromMemory(width, height, pitch, 32, texDataStart); + (*ppTexture)->LoadFromMemory(width, height, pitch, 32, XB_FMT_B8G8R8A8, texDataStart); if (IsSwizzledFormat(fmt) || fmt == XB_D3DFMT_DXT1 || fmt == XB_D3DFMT_DXT2 || fmt == XB_D3DFMT_DXT4) { |