]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.cpp
Check the relevant extensions when using pixel formats
[libs/gl.git] / source / texture3d.cpp
index 0ad65f8887437da0bf1283c93ed00b7628efdc36..95b96903254d222507e1aed834c07fa13672b109 100644 (file)
@@ -26,6 +26,7 @@ void Texture3D::storage(PixelFormat fmt, unsigned wd, unsigned ht, unsigned dp)
                throw invalid_operation("Texture3D::storage");
        if(wd==0 || ht==0 || dp==0)
                throw invalid_argument("Texture3D::storage");
+       require_pixelformat(fmt);
 
        width = wd;
        height = ht;