}
}
+ legacy = (legacy && is_legacy_target(target));
+
TexUnit &unit = TexUnit::get_unit(i);
const Texture *old = unit.get_texture();
bool old_legacy = unit.get_texture_legacy();
}
}
+bool Texture::is_legacy_target(GLenum target)
+{
+ return target<GL_TEXTURE_1D_ARRAY;
+}
+
Texture::Loader::Loader(Texture &t):
DataFile::CollectionObjectLoader<Texture>(t, 0)
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; }
};