]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.cpp
Use RAII checks for extensions and versions
[libs/gl.git] / source / texture3d.cpp
index 2fc4f997396e3dcf7f3f1a9417532c8cd3364f9c..5f8649688655a1d420c82d061406fa1a6d24af63 100644 (file)
@@ -22,7 +22,7 @@ Texture3D::Texture3D():
        height(0),
        depth(0)
 {
-       require_version(1, 3);
+       static RequireVersion _ver(1, 3);
 
        target=GL_TEXTURE_3D;
        bind();