Commit eb22fbc8947febf09cc07d20d216a206a33f27b3

Marc-André Lureau 2023-02-16T18:47:36

windows/gles: do not unload EGL when context is destroyed It's legitimate to have multiple contexts. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> (cherry picked from commit 93861e1de00a76080fa6ed756a6bd9c764b3ec07)

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/video/windows/SDL_windowsopengles.c b/src/video/windows/SDL_windowsopengles.c
index 7b8f753..2c0748c 100644
--- a/src/video/windows/SDL_windowsopengles.c
+++ b/src/video/windows/SDL_windowsopengles.c
@@ -93,7 +93,6 @@ WIN_GLES_CreateContext(_THIS, SDL_Window *window)
 void WIN_GLES_DeleteContext(_THIS, SDL_GLContext context)
 {
     SDL_EGL_DeleteContext(_this, context);
-    WIN_GLES_UnloadLibrary(_this);
 }
 
 /* *INDENT-OFF* */ /* clang-format off */