mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 15:39:55 +00:00
Cleanup
This commit is contained in:
parent
0eb7ca2c13
commit
b56f59d29d
@ -2208,13 +2208,11 @@ bool command_event(enum event_command cmd, void *data)
|
||||
{
|
||||
/* RARCH_DRIVER_CTL_UNINIT clears the callback struct so we
|
||||
* need to make sure to keep a copy */
|
||||
struct retro_hw_render_callback *hwr = NULL;
|
||||
const struct retro_hw_render_context_negotiation_interface *iface = NULL;
|
||||
struct retro_hw_render_callback hwr_copy;
|
||||
int flags = DRIVERS_CMD_ALL;
|
||||
|
||||
hwr = video_driver_get_hw_context();
|
||||
iface = video_driver_get_context_negotiation_interface();
|
||||
struct retro_hw_render_callback *hwr = video_driver_get_hw_context();
|
||||
const struct retro_hw_render_context_negotiation_interface *iface =
|
||||
video_driver_get_context_negotiation_interface();
|
||||
memcpy(&hwr_copy, hwr, sizeof(hwr_copy));
|
||||
|
||||
driver_ctl(RARCH_DRIVER_CTL_UNINIT, &flags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user