| 223 | } |
| 224 | |
| 225 | void WaylandContext::Release() { |
| 226 | wl_surface_destroy(surface); |
| 227 | surface = nullptr; |
| 228 | wl_compositor_destroy(compositor); |
| 229 | compositor = nullptr; |
| 230 | wl_registry_destroy(registry); |
| 231 | registry = nullptr; |
| 232 | wl_display_disconnect(display); |
| 233 | display = nullptr; |
| 234 | } |
| 235 | #endif |
| 236 | |
| 237 | // Set up environment for GLSL compiler |