X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture_backend.cpp;fp=source%2Fbackends%2Fopengl%2Ftexture_backend.cpp;h=f3586b0bad09a1518a0a9eb21534a3822fad4cdb;hb=57ca8f2bd18525d80ed6ad5d3f72e57901162d55;hp=fe4679f63d4fe0815a7b808a2f13f02d32a1d32b;hpb=5a01404e40717c6c2cc389ed8357713e1f216f07;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture_backend.cpp b/source/backends/opengl/texture_backend.cpp index fe4679f6..f3586b0b 100644 --- a/source/backends/opengl/texture_backend.cpp +++ b/source/backends/opengl/texture_backend.cpp @@ -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) {