emscripten: Drop commented out code from the dummy driver

This commit is contained in:
Charlie Birks 2020-04-15 14:48:52 +01:00 committed by Charlie Birks
parent 0a87075662
commit b4f11a3669
1 changed files with 0 additions and 8 deletions

View File

@ -156,14 +156,6 @@ int Emscripten_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rec
return 0; return 0;
}, surface->w, surface->h, surface->pixels); }, surface->w, surface->h, surface->pixels);
/*if (SDL_getenv("SDL_VIDEO_Emscripten_SAVE_FRAMES")) {
static int frame_number = 0;
char file[128];
SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp",
SDL_GetWindowID(window), ++frame_number);
SDL_SaveBMP(surface, file);
}*/
if (emscripten_has_asyncify() && SDL_GetHintBoolean(SDL_HINT_EMSCRIPTEN_ASYNCIFY, SDL_TRUE)) { if (emscripten_has_asyncify() && SDL_GetHintBoolean(SDL_HINT_EMSCRIPTEN_ASYNCIFY, SDL_TRUE)) {
/* give back control to browser for screen refresh */ /* give back control to browser for screen refresh */
emscripten_sleep(0); emscripten_sleep(0);