Fix 3D blit test (#2651)

bi.m_depth == 1 for usual 2D blit
This commit is contained in:
Christophe Dehais
2021-11-08 18:44:16 +01:00
committed by GitHub
parent d61e8a311f
commit 65ae59a82b

View File

@@ -7134,7 +7134,7 @@ namespace bgfx { namespace gl
const TextureGL& src = m_textures[bi.m_src.idx];
const TextureGL& dst = m_textures[bi.m_dst.idx];
BX_ASSERT(0 == bi.m_srcZ && 0 == bi.m_dstZ && 0 == bi.m_depth
BX_ASSERT(0 == bi.m_srcZ && 0 == bi.m_dstZ && 1 >= bi.m_depth
, "Blitting 3D regions is not supported"
);