X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture2darray.cpp;fp=source%2Fcore%2Ftexture2darray.cpp;h=3c54f7c0937bc580dd964846b8aab2cdad05b8df;hb=6065f6622cc275dc0b20baaf7c267e71169d18f3;hp=19066c726bdb16fda9bb6af27cd0904324901199;hpb=c4aeeced7b397d46772577775bd3a0d6c4706cba;p=libs%2Fgl.git diff --git a/source/core/texture2darray.cpp b/source/core/texture2darray.cpp index 19066c72..3c54f7c0 100644 --- a/source/core/texture2darray.cpp +++ b/source/core/texture2darray.cpp @@ -23,13 +23,6 @@ void Texture2DArray::layer_image(unsigned level, unsigned z, const void *data) sub_image(level, 0, 0, z, size.x, size.y, 1, data); } -void Texture2DArray::layer_image(unsigned level, unsigned z, PixelComponents comp, DataType type, const void *data) -{ - if(comp!=get_components(format) || type!=get_component_type(format)) - throw incompatible_data("Texture2DArray::layer_image"); - layer_image(level, z, data); -} - void Texture2DArray::layer_image(unsigned level, unsigned z, const Graphics::Image &img) { if(!get_width())