X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture3d_backend.cpp;h=d2c1088e293964b10deb45874f083063146aea88;hb=4965ad140daacd10e77b74ce9b49e98c4c4dae55;hp=6826993ae6d9c37c414d5e6ff5aa50f1c9b7ff09;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture3d_backend.cpp b/source/backends/opengl/texture3d_backend.cpp index 6826993a..d2c1088e 100644 --- a/source/backends/opengl/texture3d_backend.cpp +++ b/source/backends/opengl/texture3d_backend.cpp @@ -26,6 +26,9 @@ void OpenGLTexture3D::allocate() unsigned depth = static_cast(this)->depth; unsigned levels = static_cast(this)->levels; + if(!id) + create(); + GLenum gl_fmt = get_gl_pixelformat(storage_fmt); if(ARB_texture_storage) {