src/video/emscripten/SDL_emscriptenvideo.c
changeset 12578 b127ca09e7fe
parent 12577 32d2fe2bc966
child 12724 19c373658809
equal deleted inserted replaced
12577:32d2fe2bc966 12578:b127ca09e7fe
   291         if (data->egl_surface != EGL_NO_SURFACE) {
   291         if (data->egl_surface != EGL_NO_SURFACE) {
   292             SDL_EGL_DestroySurface(_this, data->egl_surface);
   292             SDL_EGL_DestroySurface(_this, data->egl_surface);
   293             data->egl_surface = EGL_NO_SURFACE;
   293             data->egl_surface = EGL_NO_SURFACE;
   294         }
   294         }
   295 #endif
   295 #endif
       
   296 
       
   297         /* We can't destroy the canvas, so resize it to zero instead */
       
   298         emscripten_set_canvas_element_size(NULL, 0, 0);
       
   299 
   296         SDL_free(window->driverdata);
   300         SDL_free(window->driverdata);
   297         window->driverdata = NULL;
   301         window->driverdata = NULL;
   298     }
   302     }
   299 }
   303 }
   300 
   304