Redone textures with support for GL_TEXTURE_2D_ARRAY