]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2darray.cpp
Store GLSL features in DeviceInfo
[libs/gl.git] / source / core / texture2darray.cpp
index 19066c726bdb16fda9bb6af27cd0904324901199..1c7d363e4dcd5b3cdbfd8ab6e4c0b42ca1df7f41 100644 (file)
@@ -1,4 +1,3 @@
-#include <msp/datafile/collection.h>
 #include <msp/gl/extensions/ext_texture_array.h>
 #include "error.h"
 #include "texture2darray.h"
@@ -23,13 +22,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())