/* Destroys the native window associated with the given SDL window.  */
static void destroyWindow(_THIS, SDL_Window *window)
/* Destroys the native window associated with the given SDL window.  */
static void destroyWindow(_THIS, SDL_Window *window)
{
    window_impl_t   *impl = (window_impl_t *)window->driverdata;
    if (impl) {
        screen_destroy_window(impl->window);
        window->driverdata = NULL;
    }
}