src/video/wayland/SDL_waylandwindow.c
changeset 8978 7753e4fd3d1d
parent 8766 e5f584f77609
child 9362 dfd8202eb9a7
     1.1 --- a/src/video/wayland/SDL_waylandwindow.c	Sun Jul 06 22:15:31 2014 +0100
     1.2 +++ b/src/video/wayland/SDL_waylandwindow.c	Mon Jul 07 10:33:32 2014 -0700
     1.3 @@ -243,8 +243,6 @@
     1.4      SDL_VideoData *data = _this->driverdata;
     1.5      SDL_WindowData *wind = window->driverdata;
     1.6  
     1.7 -    window->driverdata = NULL;
     1.8 -
     1.9      if (data) {
    1.10          SDL_EGL_DestroySurface(_this, wind->egl_surface);
    1.11          WAYLAND_wl_egl_window_destroy(wind->egl_window);
    1.12 @@ -261,6 +259,7 @@
    1.13          SDL_free(wind);
    1.14          WAYLAND_wl_display_flush(data->display);
    1.15      }
    1.16 +    window->driverdata = NULL;
    1.17  }
    1.18  
    1.19  #endif /* SDL_VIDEO_DRIVER_WAYLAND && SDL_VIDEO_OPENGL_EGL */