Skip to content

Commit

Permalink
Fix config handling
Browse files Browse the repository at this point in the history
  • Loading branch information
elasota committed Mar 22, 2021
1 parent 0970eb9 commit b9ff25f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DirectXTex/DirectXTexCompress.cpp
Expand Up @@ -105,6 +105,8 @@ namespace
return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED);

TexCompressConfiguration *config = pfConfigure(options);
if (!config)
return E_OUTOFMEMORY;

__declspec(align(16)) XMVECTOR tempBlocks[16 * MAX_PARALLEL_BLOCKS];
const uint8_t *pSrc = image.pixels;
Expand Down Expand Up @@ -218,6 +220,8 @@ namespace
pDest += result.rowPitch;
}

config->Release();

return S_OK;
}

Expand Down

0 comments on commit b9ff25f

Please sign in to comment.