Remove invalid check from tcu::CompressedTexture
authorPyry Haulos <phaulos@google.com>
Fri, 22 Jan 2016 21:41:11 +0000 (13:41 -0800)
committerPyry Haulos <phaulos@google.com>
Fri, 22 Jan 2016 21:42:50 +0000 (13:42 -0800)
No real 3D ASTC block formats are supported, but sliced 3D textures work
as expected.

framework/common/tcuCompressedTexture.cpp

index 916ce09..4521a08 100644 (file)
@@ -1104,9 +1104,6 @@ void CompressedTexture::setStorage (CompressedTexFormat format, int width, int h
        m_height        = height;
        m_depth         = depth;
 
-       if (isAstcFormat(m_format) && m_depth > 1)
-               throw InternalError("3D ASTC textures not currently supported");
-
        if (m_format != COMPRESSEDTEXFORMAT_LAST)
        {
                const IVec3     blockPixelSize  = getBlockPixelSize(m_format);