Skip to content

Commit

Permalink
Replace font_driver_free(NULL) calls with font_driver_free_osd()
Browse files Browse the repository at this point in the history
inside video drivers
  • Loading branch information
inactive123 committed Oct 19, 2016
1 parent 86eed67 commit 275814e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion gfx/drivers/d3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ static void d3d_deinitialize(d3d_video_t *d3d)
if (!d3d)
return;

font_driver_free(NULL);
font_driver_free_osd();

d3d_deinit_chain(d3d);
}

Expand Down
4 changes: 1 addition & 3 deletions gfx/drivers/vita2d_gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,7 @@ static void vita2d_gfx_free(void *data)
vita->texture = NULL;
}

font_driver_free(NULL);

RARCH_LOG("vita2d_gfx_free() done\n");
font_driver_free_osd();
}

static bool vita2d_gfx_set_shader(void *data,
Expand Down
3 changes: 2 additions & 1 deletion gfx/drivers/vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,8 @@ static void vulkan_free(void *data)

/* No need to init this since textures are create on-demand. */
vulkan_deinit_menu(vk);
font_driver_free(NULL);

font_driver_free_osd();

vulkan_deinit_static_resources(vk);
vulkan_overlay_free(vk);
Expand Down

0 comments on commit 275814e

Please sign in to comment.