]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/texture3d_backend.cpp
Rename OpenGLTexture::generate_id to create
[libs/gl.git] / source / backends / opengl / texture3d_backend.cpp
index 6826993ae6d9c37c414d5e6ff5aa50f1c9b7ff09..d2c1088e293964b10deb45874f083063146aea88 100644 (file)
@@ -26,6 +26,9 @@ void OpenGLTexture3D::allocate()
        unsigned depth = static_cast<const Texture3D *>(this)->depth;
        unsigned levels = static_cast<const Texture3D *>(this)->levels;
 
+       if(!id)
+               create();
+
        GLenum gl_fmt = get_gl_pixelformat(storage_fmt);
        if(ARB_texture_storage)
        {