| 5410 | } |
| 5411 | |
| 5412 | olc::rcode DestroyDevice() override |
| 5413 | { |
| 5414 | #if defined(OLC_PLATFORM_WINAPI) |
| 5415 | wglDeleteContext(glRenderContext); |
| 5416 | #endif |
| 5417 | |
| 5418 | #if defined(OLC_PLATFORM_X11) |
| 5419 | glXMakeCurrent(olc_Display, None, NULL); |
| 5420 | glXDestroyContext(olc_Display, glDeviceContext); |
| 5421 | #endif |
| 5422 | |
| 5423 | #if defined(OLC_PLATFORM_GLUT) |
| 5424 | glutDestroyWindow(glutGetWindow()); |
| 5425 | #endif |
| 5426 | return olc::rcode::OK; |
| 5427 | } |
| 5428 | |
| 5429 | void DisplayFrame() override |
| 5430 | { |
no outgoing calls
no test coverage detected