| 104 | } |
| 105 | |
| 106 | void |
| 107 | GLWindow::destroyGLWindow () |
| 108 | { |
| 109 | destroyGL (); |
| 110 | |
| 111 | if (glContext) |
| 112 | { |
| 113 | SDL_GL_DeleteContext (glContext); |
| 114 | glContext = nullptr; |
| 115 | } |
| 116 | |
| 117 | if (window) |
| 118 | { |
| 119 | SDL_DestroyWindow (window); |
| 120 | window = nullptr; |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | void |
| 125 | GLWindow::destroyGL () |