X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexturecube.cpp;h=277cba6df35b821d4119060dc83ed64be1dc886c;hb=33b6ca811172d402fc891eeed9cd2a5edc28d61d;hp=5c7f61029c3c736eb3245e99b559b29c7e79f2aa;hpb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36;p=libs%2Fgl.git diff --git a/source/core/texturecube.cpp b/source/core/texturecube.cpp index 5c7f6102..277cba6d 100644 --- a/source/core/texturecube.cpp +++ b/source/core/texturecube.cpp @@ -5,7 +5,6 @@ #include #include #include -#include "bindable.h" #include "error.h" #include "texturecube.h" @@ -98,10 +97,11 @@ void TextureCube::allocate_(unsigned level) { if(ARB_texture_storage) { + GLenum fmt = get_gl_pixelformat(storage_fmt); if(ARB_direct_state_access) - glTextureStorage2D(id, levels, storage_fmt, size, size); + glTextureStorage2D(id, levels, fmt, size, size); else - glTexStorage2D(target, levels, storage_fmt, size, size); + glTexStorage2D(target, levels, fmt, size, size); apply_swizzle(); allocated |= (64<