Commit d60546aaa8c138dcf8bb5151221d490c1b9a196e

Charlie Birks 2019-01-29T12:19:06

Emscripten: don't zero the display mode before adding it

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/video/emscripten/SDL_emscriptenvideo.c b/src/video/emscripten/SDL_emscriptenvideo.c
index cedafe3..582bec1 100644
--- a/src/video/emscripten/SDL_emscriptenvideo.c
+++ b/src/video/emscripten/SDL_emscriptenvideo.c
@@ -156,7 +156,6 @@ Emscripten_VideoInit(_THIS)
         return -1;
     }
 
-    SDL_zero(mode);
     SDL_AddDisplayMode(&_this->displays[0], &mode);
 
     Emscripten_InitMouse();