MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / ~ChangeCurrentOpenGLContext

Method ~ChangeCurrentOpenGLContext

src/opengl_depth_packet_processor.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65ChangeCurrentOpenGLContext::~ChangeCurrentOpenGLContext()
66{
67 //LOG_INFO << "restoring context!";
68 if(last_ctx != 0)
69 {
70 glfwMakeContextCurrent(last_ctx);
71 }
72 else
73 {
74 glfwMakeContextCurrent(0);
75 }
76}
77
78class WithOpenGLBindings
79{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected