X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture_backend.cpp;h=ebfeb0255b2083d8a04b8b49ff0503302e361333;hb=8a8cce8ef4ee28b3572a72958b8b407759f9f826;hp=ba6486778ac04b67504360e136f4774353b50ff3;hpb=8e58fc4da8443cb67fe4cd70d6f68de2be73011d;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture_backend.cpp b/source/backends/opengl/texture_backend.cpp index ba648677..ebfeb025 100644 --- a/source/backends/opengl/texture_backend.cpp +++ b/source/backends/opengl/texture_backend.cpp @@ -25,6 +25,14 @@ OpenGLTexture::OpenGLTexture(unsigned t): } } +OpenGLTexture::OpenGLTexture(OpenGLTexture &&other): + id(other.id), + target(other.target), + debug_name(move(other.debug_name)) +{ + other.id = 0; +} + OpenGLTexture::~OpenGLTexture() { if(this==scratch_binding)