]> git.tdb.fi Git - libs/gl.git/commitdiff
Use correct function name in exception
authorMikko Rasa <tdb@tdb.fi>
Sun, 10 Sep 2017 12:08:20 +0000 (15:08 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 10 Sep 2017 12:08:20 +0000 (15:08 +0300)
source/texture2darray.cpp

index 27e0d5334f357f10ec88761231f4012b6279f855..4123f0e2906e261b64fe0227c27894a00f8c7a09 100644 (file)
@@ -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);