JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
1.97k stars 606 forks source link

Fix opengl context leak on vid_restart #1230

Closed aufau closed 2 months ago

aufau commented 2 months ago

Effect of opengl context leak varies depending on video driver. On my linux intel driver it was adding 4 new threads per vid_restart (+ heap space)

On windows + nvidia driver it didn't add new threads but each vid_restart added considerable amount of heap space to the process.

It's possible that the leak did not happen with some older SDL version, I tested with SDL2 2.28.5