]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.h
Use UNSIGNED_SHORT for allocating DEPTH_COMPONENT textures
[libs/gl.git] / source / texture.h
index db6165fed82628206f29d69b39036d2160edefca..4cd5481e2e18f570377c3f13d86b8b4dbf984cb8 100644 (file)
@@ -2,7 +2,9 @@
 #define MSP_GL_TEXTURE_H_
 
 #include <msp/datafile/objectloader.h>
+#include "datatype.h"
 #include "gl.h"
+#include "pixelformat.h"
 #include "predicate.h"
 #include "resource.h"
 
@@ -122,6 +124,8 @@ public:
        ~Texture();
 
 protected:
+       static DataType get_alloc_type(PixelFormat);
+
        void update_parameter(int) const;
 public:
        void set_min_filter(TextureFilter);