X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexture1d.cpp;h=accd0e0c06c76a4bfe0b91f828cc840c5becff49;hb=b160f64ab6da260bad06a4e5f5bfed243e2cdc24;hp=f700d013b5dc6a55f88196695b8a8ec83b2242b9;hpb=4d7f66ea28c788e12f700216b9c53af9e71b8390;p=libs%2Fgl.git diff --git a/source/texture1d.cpp b/source/texture1d.cpp index f700d013..accd0e0c 100644 --- a/source/texture1d.cpp +++ b/source/texture1d.cpp @@ -1,3 +1,4 @@ +#include #include "bindable.h" #include "error.h" #include "texture1d.h" @@ -12,7 +13,9 @@ Texture1D::Texture1D(): ifmt(RGB), width(0), allocated(0) -{ } +{ + static Require _req(MSP_texture1D); +} void Texture1D::storage(PixelFormat fmt, unsigned wd) { @@ -47,6 +50,7 @@ void Texture1D::image(unsigned level, PixelFormat fmt, DataType type, const void allocated |= 1<>=1, ++level) ; allocated |= (1<