diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-05-03 04:34:56 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-05-03 04:34:56 +0000 |
| commit | dd64b2c58e3b26edf36f784a29106eaf6ec92d6c (patch) | |
| tree | 6cd0d678a218e537cc2cb8bdb753f56fb87c5205 /TextureLoader/src/KTXLoader.cpp | |
| parent | GLTF Loader: fixed transforms (diff) | |
| download | DiligentTools-dd64b2c58e3b26edf36f784a29106eaf6ec92d6c.tar.gz DiligentTools-dd64b2c58e3b26edf36f784a29106eaf6ec92d6c.zip | |
Update GLTF loader; fixed warning in KTX loader
Diffstat (limited to 'TextureLoader/src/KTXLoader.cpp')
| -rw-r--r-- | TextureLoader/src/KTXLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TextureLoader/src/KTXLoader.cpp b/TextureLoader/src/KTXLoader.cpp index fc679f4..d75f55e 100644 --- a/TextureLoader/src/KTXLoader.cpp +++ b/TextureLoader/src/KTXLoader.cpp @@ -265,7 +265,7 @@ void CreateTextureFromKTX( IDataBlob* pKTXData, pData += Align(MipInfo.MipSize, 4u); } } - VERIFY(pData - reinterpret_cast<const Uint8*>(pKTXData->GetDataPtr()) == DataSize, "Unexpected data size"); + VERIFY(pData - reinterpret_cast<const Uint8*>(pKTXData->GetDataPtr()) == static_cast<ptrdiff_t>(DataSize), "Unexpected data size"); TextureData InitData(SubresData.data(), static_cast<Uint32>(SubresData.size())); pDevice->CreateTexture(TexDesc, &InitData, ppTexture); |
