X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture3d_backend.cpp;fp=source%2Fbackends%2Fopengl%2Ftexture3d_backend.cpp;h=1197405ee367ff192690437f37ccca89b677000f;hb=57ca8f2bd18525d80ed6ad5d3f72e57901162d55;hp=6826993ae6d9c37c414d5e6ff5aa50f1c9b7ff09;hpb=5a01404e40717c6c2cc389ed8357713e1f216f07;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture3d_backend.cpp b/source/backends/opengl/texture3d_backend.cpp index 6826993a..1197405e 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) + generate_id(); + GLenum gl_fmt = get_gl_pixelformat(storage_fmt); if(ARB_texture_storage) {