X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture_backend.cpp;h=88e1c2b33877cc1349b93375b8201f4de318047c;hp=f3586b0bad09a1518a0a9eb21534a3822fad4cdb;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=57ca8f2bd18525d80ed6ad5d3f72e57901162d55 diff --git a/source/backends/opengl/texture_backend.cpp b/source/backends/opengl/texture_backend.cpp index f3586b0b..88e1c2b3 100644 --- a/source/backends/opengl/texture_backend.cpp +++ b/source/backends/opengl/texture_backend.cpp @@ -23,7 +23,6 @@ int OpenGLTexture::swizzle_orders[] = OpenGLTexture *OpenGLTexture::scratch_binding = 0; OpenGLTexture::OpenGLTexture(unsigned t): - id(0), target(t) { static bool alignment_init = false; @@ -42,10 +41,10 @@ OpenGLTexture::~OpenGLTexture() glDeleteTextures(1, &id); } -void OpenGLTexture::generate_id() +void OpenGLTexture::create() { if(id) - throw invalid_operation("OpenGLTexture::generate_id"); + throw invalid_operation("OpenGLTexture::create"); if(ARB_direct_state_access) glCreateTextures(target, 1, &id); else