X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture1d.cpp;h=046fca6fa4eccbe49a5a5174ba498adefc1b892c;hb=f35535633aab06e80f0666d8551431364654c6dc;hp=f700d013b5dc6a55f88196695b8a8ec83b2242b9;hpb=4d7f66ea28c788e12f700216b9c53af9e71b8390;p=libs%2Fgl.git diff --git a/source/texture1d.cpp b/source/texture1d.cpp index f700d013..046fca6f 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) { @@ -31,7 +34,8 @@ void Texture1D::allocate(unsigned level) if(allocated&(1<>=1, ++level) ; allocated |= (1<