From: Mikko Rasa Date: Sun, 10 Sep 2017 12:08:20 +0000 (+0300) Subject: Use correct function name in exception X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=af38b327d25410b87084fe937b311ebde1ba6c5d;p=libs%2Fgl.git Use correct function name in exception --- 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);