Forráskód Böngészése

Fixed depth format validation.

Branimir Karadžić 7 éve
szülő
commit
914c7e3a87
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/bgfx.cpp

+ 1 - 1
src/bgfx.cpp

@@ -4047,7 +4047,7 @@ namespace bgfx
 			, "Invalid texture format for color (%s)."
 			, bimg::getName(bimg::TextureFormat::Enum(_format) )
 			);
-		BX_CHECK(_format == TextureFormat::Count || bimg::isDepth(bimg::TextureFormat::Enum(_depthFormat) )
+		BX_CHECK(_depthFormat == TextureFormat::Count || bimg::isDepth(bimg::TextureFormat::Enum(_depthFormat) )
 			, "Invalid texture format for depth (%s)."
 			, bimg::getName(bimg::TextureFormat::Enum(_depthFormat) )
 			);