mesa: Remove fprintf referring to libdxtn
authorMatt Turner <mattst88@gmail.com>
Thu, 28 Sep 2017 21:09:55 +0000 (14:09 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 3 Oct 2017 02:41:22 +0000 (19:41 -0700)
When this file is included by Gallium, the fprintf causes it to fail to
compile. This is an unreachable error case, and we shouldn't be calling
fprintf directly.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/main/texcompress_s3tc_tmp.h

index 3abce6e904006dbfcd3e114cbf24af28c0113355..61630f24751ee3b280849fe97d1589370157c835 100644 (file)
@@ -983,7 +983,7 @@ static void tx_compress_dxtn(GLint srccomps, GLint width, GLint height, const GL
       }
       break;
    default:
-      fprintf(stderr, "libdxtn: Bad dstFormat %d in tx_compress_dxtn\n", destFormat);
+      assert(false);
       return;
    }
 }