]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/texture2d_backend.cpp
Rename OpenGLTexture::generate_id to create
[libs/gl.git] / source / backends / opengl / texture2d_backend.cpp
index 725b603893973f1a52c47ad35d8dd8c8e69bc771..c47600cf9402f99a0a41f41df9c43f753ccbfcde 100644 (file)
@@ -42,7 +42,7 @@ void OpenGLTexture2D::allocate()
        unsigned levels = static_cast<const Texture2D *>(this)->levels;
 
        if(!id)
-               generate_id();
+               create();
 
        GLenum gl_fmt = get_gl_pixelformat(storage_fmt);
        if(ARB_texture_storage)
@@ -147,7 +147,7 @@ bool OpenGLTexture2D::AsyncLoader::process()
                }
 
                if(!texture.id)
-                       texture.generate_id();
+                       texture.create();
 
                unsigned w = image.get_width();
                unsigned h = image.get_height();