Module: Mesa
Branch: master
Commit: fb5338c4b77db70ea26b0745cff1cb3e330a5139
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb5338c4b77db70ea26b0745cff1cb3e330a5139

Author: Matt Turner <[email protected]>
Date:   Thu Sep 28 14:09:55 2017 -0700

mesa: Remove fprintf referring to libdxtn

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 <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>

---

 src/mesa/main/texcompress_s3tc_tmp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/texcompress_s3tc_tmp.h 
b/src/mesa/main/texcompress_s3tc_tmp.h
index 3abce6e904..61630f2475 100644
--- a/src/mesa/main/texcompress_s3tc_tmp.h
+++ b/src/mesa/main/texcompress_s3tc_tmp.h
@@ -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;
    }
 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to