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
|
/* RARCH_DRIVER_CTL_UNINIT clears the callback struct so we
|
||||||
* need to make sure to keep a copy */
|
* 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;
|
struct retro_hw_render_callback hwr_copy;
|
||||||
int flags = DRIVERS_CMD_ALL;
|
int flags = DRIVERS_CMD_ALL;
|
||||||
|
struct retro_hw_render_callback *hwr = video_driver_get_hw_context();
|
||||||
hwr = video_driver_get_hw_context();
|
const struct retro_hw_render_context_negotiation_interface *iface =
|
||||||
iface = video_driver_get_context_negotiation_interface();
|
video_driver_get_context_negotiation_interface();
|
||||||
memcpy(&hwr_copy, hwr, sizeof(hwr_copy));
|
memcpy(&hwr_copy, hwr, sizeof(hwr_copy));
|
||||||
|
|
||||||
driver_ctl(RARCH_DRIVER_CTL_UNINIT, &flags);
|
driver_ctl(RARCH_DRIVER_CTL_UNINIT, &flags);
|
||||||
|
|
Loading…
Reference in New Issue