From af38b327d25410b87084fe937b311ebde1ba6c5d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 10 Sep 2017 15:08:20 +0300 Subject: [PATCH] Use correct function name in exception --- source/texture2darray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/texture2darray.cpp b/source/texture2darray.cpp index 27e0d533..4123f0e2 100644 --- a/source/texture2darray.cpp +++ b/source/texture2darray.cpp @@ -28,13 +28,13 @@ void Texture2DArray::layer_image(unsigned level, unsigned z, PixelFormat fmt, Da void Texture2DArray::layer_image(unsigned level, unsigned z, const Graphics::Image &img) { if(!get_width()) - throw invalid_operation("Texture2D::layer_image"); + throw invalid_operation("Texture2DArray::layer_image"); unsigned w = img.get_width(); unsigned h = img.get_height(); PixelFormat fmt = pixelformat_from_graphics(img.get_format()); if(w!=get_width() || h!=get_height()) - throw incompatible_data("Texture2D::image"); + throw incompatible_data("Texture2DArray::layer_image"); PixelStore pstore = PixelStore::from_image(img); BindRestore _bind_ps(pstore); -- 2.43.0