]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.cpp
Prefer sized internal formats when possible
[libs/gl.git] / source / texturecube.cpp
index 3c6f23bd94f05443fd5e872febca8edf19555875..889d051b905e490dc9006f993a24fc476871d5c5 100644 (file)
@@ -37,6 +37,9 @@ void TextureCube::storage(PixelFormat fmt, unsigned sz)
                throw invalid_operation("TextureCube::storage");
        if(sz==0)
                throw invalid_argument("TextureCube::storage");
+
+       if(MSP_sized_internal_formats)
+               fmt = get_sized_pixelformat(fmt);
        require_pixelformat(fmt);
 
        ifmt = fmt;