Browse Source

Remove extra copy in gl.cpp

pull/19/head
Aaron Gokaslan 4 years ago
parent
commit
56a834e1a4
  1. 2
      src/python/magnum/gl.cpp

2
src/python/magnum/gl.cpp

@ -380,7 +380,7 @@ void gl(py::module_& m) {
owner = Corrade::pyObjectFromInstance(glContextOwner->first, *glContextOwner->second);
}
return ContextHolder<GL::Context>{&GL::Context::current(), owner};
return ContextHolder<GL::Context>{&GL::Context::current(), std::move(owner)};
}, "Current context")
/** @todo context switching (needs additions to the "who owns
current context instance" variable -- a map?) */

Loading…
Cancel
Save