Merge pull request #608 from DraconicEnt/bugfix-msvc-compiler-warnings

BugFix: Correct MSVC Compiler Warnings
This commit is contained in:
Brian Roberts 2021-10-11 19:31:22 -05:00 committed by GitHub
commit 8f8a8384e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 32 additions and 152 deletions

View file

@ -528,9 +528,6 @@ void GFXD3D11CubemapArray::init(const U32 cubemapCount, const U32 cubemapFaceSiz
void GFXD3D11CubemapArray::updateTexture(const GFXCubemapHandle &cubemap, const U32 slot)
{
U32 cubeMapSz = cubemap->getSize();
U32 cubeMapSize = cubemap->getMipMapLevels();
AssertFatal(slot <= mNumCubemaps, "GFXD3D11CubemapArray::updateTexture - trying to update a cubemap texture that is out of bounds!");
AssertFatal(mFormat == cubemap->getFormat(), "GFXD3D11CubemapArray::updateTexture - Destination format doesn't match");
AssertFatal(mSize == cubemap->getSize(), "GFXD3D11CubemapArray::updateTexture - Destination size doesn't match");