X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture3d.cpp;h=d5badc725435fb3efb37d4c15c52bedafd40ece6;hb=9885c5465db78b6a1d9cc8bf7ffa7a79fb116afc;hp=95b96903254d222507e1aed834c07fa13672b109;hpb=41b4cb3002f3551ce1bd6fdf15994ee7bc523788;p=libs%2Fgl.git diff --git a/source/texture3d.cpp b/source/texture3d.cpp index 95b96903..d5badc72 100644 --- a/source/texture3d.cpp +++ b/source/texture3d.cpp @@ -1,8 +1,9 @@ #include +#include #include #include "bindable.h" #include "error.h" -#include "ext_texture3d.h" +#include "pixelstore.h" #include "texture3d.h" using namespace std; @@ -12,6 +13,7 @@ namespace GL { Texture3D::Texture3D(): Texture(GL_TEXTURE_3D), + ifmt(RGB), width(0), height(0), depth(0), @@ -39,7 +41,8 @@ void Texture3D::allocate(unsigned level) if(allocated&(1<>=1, h>>=1, d>>=1, ++level) ; allocated |= (1<