From 6d894ba14b0835ae3c74d2e00b951e87c76c04f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 2 Apr 2012 01:50:17 +0200 Subject: [PATCH] Temporary fix for build error in BufferedImage. It fails because Magnum::Type cannot be written to Corrade::Debug. The function will be rewritten anyway, thus fixing it only temporarily. --- src/BufferedImage.h | 2 +- src/Image.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BufferedImage.h b/src/BufferedImage.h index f2d145a37..4f72a0c16 100644 --- a/src/BufferedImage.h +++ b/src/BufferedImage.h @@ -95,7 +95,7 @@ template class BufferedImage { */ template void setData(const T* data) { if(TypeTraits::TextureType>::glType() != _type) { - Corrade::Utility::Error() << "BufferedImage: Passed data have type" << TypeTraits::TextureType>::glType() << "but it should be" << _type; + Corrade::Utility::Error() << "BufferedImage: Passed data have wrong type"; return; } diff --git a/src/Image.h b/src/Image.h index e53201143..be2f3984e 100644 --- a/src/Image.h +++ b/src/Image.h @@ -100,7 +100,7 @@ template class Image { */ template void setData(const T* data) { if(TypeTraits::TextureType>::glType() != _type) { - Corrade::Utility::Error() << "Image: Passed data have type" << TypeTraits::TextureType>::glType() << "but it should be" << _type; + Corrade::Utility::Error() << "Image: Passed data have wrong type"; return; }