X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexturecube.cpp;h=277cba6df35b821d4119060dc83ed64be1dc886c;hp=ae06557dfe2ae40fa26ab9700e6a628ed0f5f7fc;hb=33b6ca811172d402fc891eeed9cd2a5edc28d61d;hpb=a60b558e1c327fd2e2600ad2551dc0ac648761f2 diff --git a/source/core/texturecube.cpp b/source/core/texturecube.cpp index ae06557d..277cba6d 100644 --- a/source/core/texturecube.cpp +++ b/source/core/texturecube.cpp @@ -97,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<