]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.cpp
Check the relevant extensions when using pixel formats
[libs/gl.git] / source / texturecube.cpp
index bbe6a6b679fe259915e6710036ed75336634816e..a5874a6a66bbe9c64cbbec58e7e1477761c5e8e7 100644 (file)
@@ -32,6 +32,7 @@ void TextureCube::storage(PixelFormat fmt, unsigned sz)
                throw invalid_operation("TextureCube::storage");
        if(sz==0)
                throw invalid_argument("TextureCube::storage");
+       require_pixelformat(fmt);
 
        ifmt = fmt;
        size = sz;