| 55 | } |
| 56 | |
| 57 | void Window::ScopedGraphicsContext::done() |
| 58 | { |
| 59 | if (active) |
| 60 | { |
| 61 | puglBackendLeave(window.pData->view); |
| 62 | active = false; |
| 63 | } |
| 64 | |
| 65 | if (reenter) |
| 66 | { |
| 67 | reenter = false; |
| 68 | DISTRHO_SAFE_ASSERT_RETURN(ppData != nullptr,); |
| 69 | |
| 70 | puglBackendEnter(ppData->view); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | void Window::ScopedGraphicsContext::reinit() |
| 75 | { |
no test coverage detected