]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/framebuffer_backend.cpp
Add correct copy and move semantics to most classes
[libs/gl.git] / source / backends / opengl / framebuffer_backend.cpp
index db1905d23394c50a2ffad1ebad7099fc8a9ea65c..de8a9c6eabd2274cceb83b7c087b570b06149d16 100644 (file)
@@ -32,6 +32,13 @@ OpenGLFramebuffer::OpenGLFramebuffer(bool is_system):
        }
 }
 
+OpenGLFramebuffer::OpenGLFramebuffer(OpenGLFramebuffer &&other):
+       id(other.id),
+       status(other.status)
+{
+       other.id = 0;
+}
+
 OpenGLFramebuffer::~OpenGLFramebuffer()
 {
        if(id)