|
|
@@ -365,10 +365,10 @@ namespace CamelotFramework
|
|
|
// determine wich D3D9 pixel format we'll use
|
|
|
HRESULT hr;
|
|
|
D3DFORMAT d3dPF = _chooseD3DFormat(d3d9Device);
|
|
|
- mFormat = D3D9Mappings::_getPF(d3dPF);
|
|
|
-
|
|
|
+
|
|
|
// let's D3DX check the corrected pixel format
|
|
|
hr = D3DXCheckTextureRequirements(d3d9Device, NULL, NULL, NULL, 0, &d3dPF, mD3DPool);
|
|
|
+ mFormat = D3D9Mappings::_getPF(d3dPF);
|
|
|
|
|
|
// Use D3DX to help us create the texture, this way it can adjust any relevant sizes
|
|
|
DWORD usage = 0;
|
|
|
@@ -540,10 +540,10 @@ namespace CamelotFramework
|
|
|
// determine wich D3D9 pixel format we'll use
|
|
|
HRESULT hr;
|
|
|
D3DFORMAT d3dPF = _chooseD3DFormat(d3d9Device);
|
|
|
- mFormat = D3D9Mappings::_getPF(d3dPF);
|
|
|
|
|
|
// let's D3DX check the corrected pixel format
|
|
|
hr = D3DXCheckCubeTextureRequirements(d3d9Device, NULL, NULL, 0, &d3dPF, mD3DPool);
|
|
|
+ mFormat = D3D9Mappings::_getPF(d3dPF);
|
|
|
|
|
|
// Use D3DX to help us create the texture, this way it can adjust any relevant sizes
|
|
|
DWORD usage = (mUsage & TU_RENDERTARGET) ? D3DUSAGE_RENDERTARGET : 0;
|
|
|
@@ -647,10 +647,10 @@ namespace CamelotFramework
|
|
|
// determine which D3D9 pixel format we'll use
|
|
|
HRESULT hr;
|
|
|
D3DFORMAT d3dPF = _chooseD3DFormat(d3d9Device);
|
|
|
- mFormat = D3D9Mappings::_getPF(d3dPF);
|
|
|
|
|
|
// let's D3DX check the corrected pixel format
|
|
|
hr = D3DXCheckVolumeTextureRequirements(d3d9Device, NULL, NULL, NULL, NULL, 0, &d3dPF, mD3DPool);
|
|
|
+ mFormat = D3D9Mappings::_getPF(d3dPF);
|
|
|
|
|
|
// Use D3DX to help us create the texture, this way it can adjust any relevant sizes
|
|
|
DWORD usage = (mUsage & TU_RENDERTARGET) ? D3DUSAGE_RENDERTARGET : 0;
|