]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/texture_backend.cpp
Add correct copy and move semantics to most classes
[libs/gl.git] / source / backends / opengl / texture_backend.cpp
index ba6486778ac04b67504360e136f4774353b50ff3..ebfeb0255b2083d8a04b8b49ff0503302e361333 100644 (file)
@@ -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)