X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture2dmultisample_backend.cpp;h=c9faa85e99a6dfbee471356db3aa8e941cd40068;hb=9e63512930bc7dace6dc169c65161961e5dcfcf6;hp=c4a4e42380d227666790386c6b9e1697617a80f2;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture2dmultisample_backend.cpp b/source/backends/opengl/texture2dmultisample_backend.cpp index c4a4e423..c9faa85e 100644 --- a/source/backends/opengl/texture2dmultisample_backend.cpp +++ b/source/backends/opengl/texture2dmultisample_backend.cpp @@ -19,6 +19,9 @@ void OpenGLTexture2DMultisample::allocate() unsigned height = static_cast(this)->height; unsigned samples = static_cast(this)->samples; + if(!id) + create(); + GLenum gl_fmt = get_gl_pixelformat(storage_fmt); if(ARB_texture_storage_multisample) {