Skip to content

Commit

Permalink
10level9 drivers can return something other than E_INVALIDARG for thi…
Browse files Browse the repository at this point in the history
…s case, so we retry for any failure
  • Loading branch information
walbourn_cp authored and walbourn_cp committed May 2, 2012
1 parent 807899c commit 4c613ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/DDSTextureLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ static HRESULT CreateTextureFromDDS( _In_ ID3D11Device* d3dDevice,
{
hr = CreateD3DResources( d3dDevice, resDim, twidth, theight, tdepth, mipCount - skipMip, arraySize, format, isCubeMap, initData.get(), texture, textureView );

if ( (hr == E_INVALIDARG) && !maxsize && (mipCount > 1) )
if ( FAILED(hr) && !maxsize && (mipCount > 1) )
{
// Retry with a maxsize determined by feature level
switch( d3dDevice->GetFeatureLevel() )
Expand Down

0 comments on commit 4c613ed

Please sign in to comment.