src/video/emscripten/SDL_emscriptenopengles.c
changeset 12579 8dc4e45fbe2b
parent 12503 806492103856
     1.1 --- a/src/video/emscripten/SDL_emscriptenopengles.c	Tue Jan 29 12:19:23 2019 +0000
     1.2 +++ b/src/video/emscripten/SDL_emscriptenopengles.c	Tue Jan 29 12:19:32 2019 +0000
     1.3 @@ -81,19 +81,6 @@
     1.4      return 0;
     1.5  }
     1.6  
     1.7 -void
     1.8 -Emscripten_GLES_DeleteContext(_THIS, SDL_GLContext context)
     1.9 -{
    1.10 -    /*
    1.11 -    WebGL contexts can't actually be deleted, so we need to reset it.
    1.12 -    ES2 renderer resets state on init anyway, clearing the canvas should be enough
    1.13 -    */
    1.14 -
    1.15 -    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
    1.16 -
    1.17 -    SDL_EGL_DeleteContext(_this, context);
    1.18 -}
    1.19 -
    1.20  SDL_EGL_CreateContext_impl(Emscripten)
    1.21  SDL_EGL_SwapWindow_impl(Emscripten)
    1.22  SDL_EGL_MakeCurrent_impl(Emscripten)