X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexture2d.cpp;h=7cad81d92a5e44e2717bbaf88f1c35d166fa8dc3;hb=89d3d10b75a42f86b224feb00b20283af66c0b01;hp=f36cadae09aaa21f6abd7f97729d16bf34f6d714;hpb=9d696772b2194b67d8e3e4da11169900eab58c0d;p=libs%2Fgl.git diff --git a/source/texture2d.cpp b/source/texture2d.cpp index f36cadae..7cad81d9 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -32,6 +32,7 @@ public: Texture2D::Texture2D(ResourceManager *m): Texture(GL_TEXTURE_2D, m), + ifmt(RGB), width(0), height(0), allocated(0) @@ -73,6 +74,7 @@ void Texture2D::image(unsigned level, PixelFormat fmt, DataType type, const void allocated |= 1<>=1, h>>=1, ++level) ; allocated |= (1<