X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2darray.cpp;h=52f5fd7139fab95d8f72c9bcbbefbc76b0640a9a;hp=19066c726bdb16fda9bb6af27cd0904324901199;hb=959efbf61663efd7879070ce0447e02c8a447ce0;hpb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36 diff --git a/source/core/texture2darray.cpp b/source/core/texture2darray.cpp index 19066c72..52f5fd71 100644 --- a/source/core/texture2darray.cpp +++ b/source/core/texture2darray.cpp @@ -1,5 +1,3 @@ -#include -#include #include "error.h" #include "texture2darray.h" @@ -8,12 +6,6 @@ using namespace std; namespace Msp { namespace GL { -Texture2DArray::Texture2DArray(): - Texture3D(GL_TEXTURE_2D_ARRAY) -{ - static Require _req(EXT_texture_array); -} - void Texture2DArray::layer_image(unsigned level, unsigned z, const void *data) { if(level>=levels || z>=depth) @@ -23,13 +15,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())