X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2darray.cpp;h=07f04c691b7dad0f9387ecd5362ece69196a6264;hp=1c7d363e4dcd5b3cdbfd8ab6e4c0b42ca1df7f41;hb=HEAD;hpb=acaefb4c669f01855252818ef0a2958cbdababc3 diff --git a/source/core/texture2darray.cpp b/source/core/texture2darray.cpp index 1c7d363e..07f04c69 100644 --- a/source/core/texture2darray.cpp +++ b/source/core/texture2darray.cpp @@ -1,4 +1,3 @@ -#include #include "error.h" #include "texture2darray.h" @@ -7,15 +6,9 @@ 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) + if(level>=n_levels || z>=depth) throw out_of_range("Texture2DArray::layer_image"); LinAl::Vector size = get_level_size(level);