mirror of
https://github.com/libretro/RetroArch
synced 2025-02-02 05:54:16 +00:00
Remove some warnings
This commit is contained in:
parent
518a83b2c3
commit
7e1a06d8dd
@ -939,8 +939,6 @@ bool audio_driver_toggle_mute(void)
|
||||
|
||||
bool audio_driver_ctl(enum rarch_audio_ctl_state state, void *data)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
switch (state)
|
||||
{
|
||||
case RARCH_AUDIO_CTL_DESTROY:
|
||||
|
@ -40,7 +40,6 @@ extern "C" {
|
||||
enum rarch_audio_ctl_state
|
||||
{
|
||||
RARCH_AUDIO_CTL_NONE = 0,
|
||||
RARCH_AUDIO_CTL_DEINIT,
|
||||
RARCH_AUDIO_CTL_DESTROY,
|
||||
RARCH_AUDIO_CTL_DESTROY_DATA,
|
||||
RARCH_AUDIO_CTL_START,
|
||||
|
2
driver.c
2
driver.c
@ -407,7 +407,7 @@ static void uninit_drivers(int flags)
|
||||
camera_driver_ctl(RARCH_CAMERA_CTL_DEINIT, NULL);
|
||||
|
||||
if (flags & DRIVER_AUDIO)
|
||||
audio_driver_ctl(RARCH_AUDIO_CTL_DEINIT, NULL);
|
||||
audio_driver_deinit();
|
||||
|
||||
if (flags & DRIVERS_VIDEO_INPUT)
|
||||
video_driver_deinit();
|
||||
|
@ -58,10 +58,10 @@ static bool gl_raster_font_upload_atlas(gl_raster_t *font,
|
||||
GLenum gl_format = GL_LUMINANCE_ALPHA;
|
||||
size_t ncomponents = 2;
|
||||
uint8_t *tmp = NULL;
|
||||
struct retro_hw_render_callback *hwr = NULL;
|
||||
bool ancient = false; /* add a check here if needed */
|
||||
|
||||
hwr = video_driver_get_hw_context();
|
||||
#if defined(GL_VERSION_3_0)
|
||||
struct retro_hw_render_callback *hwr = video_driver_get_hw_context();
|
||||
#endif
|
||||
|
||||
if (ancient)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user