46041e0cc0
Otherwise SDL_GL_DeleteContext() tried to access an uninitialized pointer upon exit when not using the OpenGL renderer. SDL_GL_DeleteContext() doesn't try to delete a NULL pointer, so no need to check for that. Fixes #5057 <https://github.com/Genymobile/scrcpy/issues/5057> PR #5058 <https://github.com/Genymobile/scrcpy/pull/5058> Signed-off-by: Romain Vimont <rom@rom1v.com>