| 63 | } |
| 64 | |
| 65 | ChangeCurrentOpenGLContext::~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 | |
| 78 | class WithOpenGLBindings |
| 79 | { |
nothing calls this directly
no outgoing calls
no test coverage detected