X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexturecube.cpp;h=db679cf9e1259cb4feb0e087c0f3e066c40921c3;hp=19c3bf074b9a3557adf7668c4752f22bda3bcb8c;hb=4b4d2a48048268d2ad48bafbce8647af8088573f;hpb=cdf928f03f4d8383b8fa978abc4c255a850ec061 diff --git a/source/texturecube.cpp b/source/texturecube.cpp index 19c3bf07..db679cf9 100644 --- a/source/texturecube.cpp +++ b/source/texturecube.cpp @@ -96,7 +96,7 @@ void TextureCube::image(TextureCubeFace face, unsigned level, PixelFormat fmt, D return sub_image(face, level, 0, 0, s, s, fmt, type, data); BindRestore _bind(this); - glTexImage2D(face, level, ifmt, s, s, 0, fmt, type, data); + glTexImage2D(face, level, ifmt, s, s, 0, get_upload_format(fmt), type, data); // XXX Allocation should be tracked per-face, but we'll run out of bits allocated |= 1<