]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.h
Do not attempt to legacy-bind texture targets which do not support it
[libs/gl.git] / source / texture.h
index f491297d692816de8d2503ba8e6071f77a852ca6..ffc5e1a4ab40a1f2f6ccee04b93c8423ee003eea 100644 (file)
@@ -202,7 +202,10 @@ public:
        static const Texture *current(unsigned = 0);
        static void unbind() { unbind_from(0); }
        static void unbind_from(unsigned);
+private:
+       static bool is_legacy_target(GLenum);
 
+public:
        virtual UInt64 get_data_size() const { return 0; }
 };