Mercurial > repos > blastem
diff genesis.c @ 1401:b56c8c51ca5d
Properly release and reacquire framebuffer pointer when switching contexts. Hopefully fixes the LOCKRECT issue some people are seeing with the SDL 2 fallback renderer
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 15 Jun 2017 09:45:21 -0700 |
parents | efa7225e0f07 |
children | d94855080529 |
line wrap: on
line diff
--- a/genesis.c Wed Jun 14 21:59:30 2017 -0700 +++ b/genesis.c Thu Jun 15 09:45:21 2017 -0700 @@ -896,6 +896,7 @@ //Is there any sort of VDP reset? m68k_reset(gen->m68k); } + vdp_release_framebuffer(gen->vdp); } static void start_genesis(system_header *system, char *statefile) @@ -931,6 +932,7 @@ genesis_context *gen = (genesis_context *)system; map_all_bindings(&gen->io); render_set_video_standard((gen->version_reg & HZ50) ? VID_PAL : VID_NTSC); + vdp_reacquire_framebuffer(gen->vdp); resume_68k(gen->m68k); handle_reset_requests(gen); }