]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/texture_backend.cpp
Always delay texture creation until it is allocated
[libs/gl.git] / source / backends / opengl / texture_backend.cpp
index fe4679f63d4fe0815a7b808a2f13f02d32a1d32b..f3586b0bad09a1518a0a9eb21534a3822fad4cdb 100644 (file)
@@ -22,13 +22,10 @@ int OpenGLTexture::swizzle_orders[] =
 
 OpenGLTexture *OpenGLTexture::scratch_binding = 0;
 
-OpenGLTexture::OpenGLTexture(unsigned t, bool create):
+OpenGLTexture::OpenGLTexture(unsigned t):
        id(0),
        target(t)
 {
-       if(create)
-               generate_id();
-
        static bool alignment_init = false;
        if(!alignment_init)
        {