| 72 | } |
| 73 | |
| 74 | void Window::ScopedGraphicsContext::reinit() |
| 75 | { |
| 76 | DISTRHO_SAFE_ASSERT_RETURN(!active,); |
| 77 | DISTRHO_SAFE_ASSERT_RETURN(!reenter,); |
| 78 | DISTRHO_SAFE_ASSERT_RETURN(ppData != nullptr,); |
| 79 | |
| 80 | reenter = true; |
| 81 | puglBackendLeave(ppData->view); |
| 82 | active = puglBackendEnter(window.pData->view); |
| 83 | } |
| 84 | |
| 85 | // ----------------------------------------------------------------------- |
| 86 | // Window |
no test coverage detected