X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture2d_backend.cpp;h=2f7e503b7d42a9aec7e8055a38fa2446e5805a0a;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hp=725b603893973f1a52c47ad35d8dd8c8e69bc771;hpb=57ca8f2bd18525d80ed6ad5d3f72e57901162d55;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture2d_backend.cpp b/source/backends/opengl/texture2d_backend.cpp index 725b6038..2f7e503b 100644 --- a/source/backends/opengl/texture2d_backend.cpp +++ b/source/backends/opengl/texture2d_backend.cpp @@ -31,8 +31,8 @@ public: }; -OpenGLTexture2D::OpenGLTexture2D(ResourceManager *m): - Texture(GL_TEXTURE_2D, m) +OpenGLTexture2D::OpenGLTexture2D(): + Texture(GL_TEXTURE_2D) { } void OpenGLTexture2D::allocate() @@ -42,7 +42,7 @@ void OpenGLTexture2D::allocate() unsigned levels = static_cast(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();