From dee43c24fbd5f0ee0b81cc325164903c8b25ea1d Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 15 Jun 2017 09:45:21 -0700 Subject: Properly release and reacquire framebuffer pointer when switching contexts. Hopefully fixes the LOCKRECT issue some people are seeing with the SDL 2 fallback renderer --- vdp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vdp.h') diff --git a/vdp.h b/vdp.h index 0a1bbb5..6c805c2 100644 --- a/vdp.h +++ b/vdp.h @@ -248,5 +248,7 @@ uint32_t vdp_cycles_to_frame_end(vdp_context * context); void write_cram(vdp_context * context, uint16_t address, uint16_t value); void vdp_check_update_sat_byte(vdp_context *context, uint32_t address, uint8_t value); void vdp_pbc_pause(vdp_context *context); +void vdp_release_framebuffer(vdp_context *context); +void vdp_reacquire_framebuffer(vdp_context *context); #endif //VDP_H_ -- cgit v1.2.3