Mercurial > repos > blastem
diff render_sdl.c @ 1975:3701517d852c
Avoid expensive re-init from switching to external sync after render_init has been called
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 08 May 2020 16:52:32 -0700 |
parents | bd70f1e15684 |
children | f3cca4b3f17a |
line wrap: on
line diff
--- a/render_sdl.c Fri May 08 16:38:58 2020 -0700 +++ b/render_sdl.c Fri May 08 16:52:32 2020 -0700 @@ -265,7 +265,10 @@ { if (ext_sync_on != external_sync) { external_sync = ext_sync_on; - render_config_updated(); + if (windowed_width) { + //only do this if render_init has already been called + render_config_updated(); + } } }