src/video/emscripten/SDL_emscriptenframebuffer.c
changeset 9300 0293f45e4814
parent 9278 8900afb78a19
child 9342 fd83fb813389
     1.1 --- a/src/video/emscripten/SDL_emscriptenframebuffer.c	Fri Dec 26 22:30:19 2014 -0500
     1.2 +++ b/src/video/emscripten/SDL_emscriptenframebuffer.c	Fri Dec 26 23:16:54 2014 -0500
     1.3 @@ -58,7 +58,6 @@
     1.4  
     1.5  int Emscripten_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects)
     1.6  {
     1.7 -    static int frame_number;
     1.8      SDL_Surface *surface;
     1.9  
    1.10      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
    1.11 @@ -115,6 +114,7 @@
    1.12      }, surface->w, surface->h, surface->pixels);
    1.13  
    1.14      /*if (SDL_getenv("SDL_VIDEO_Emscripten_SAVE_FRAMES")) {
    1.15 +        static int frame_number = 0;
    1.16          char file[128];
    1.17          SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp",
    1.18                       SDL_GetWindowID(window), ++frame_number);