X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.cpp;h=8d43143c9d734c218211d070890bf4cd080b42ed;hb=f35535633aab06e80f0666d8551431364654c6dc;hp=6484440e08708075081bab3d9b54c20e2c4e55ec;hpb=634bf31f905ece4ad1b4858b530322a0fa7f21d3;p=libs%2Fgl.git diff --git a/source/texture.cpp b/source/texture.cpp index 6484440e..8d43143c 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -75,6 +75,11 @@ Texture::~Texture() glDeleteTextures(1, &id); } +DataType Texture::get_alloc_type(PixelFormat fmt) +{ + return (fmt==DEPTH_COMPONENT ? UNSIGNED_SHORT : UNSIGNED_BYTE); +} + void Texture::update_parameter(int mask) const { if(TexUnit::current().get_texture()!=this)