mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Fix some warnings; set gfx_white_texture to 0 in deinit function at the
end
This commit is contained in:
parent
90775e7306
commit
868a4bf3fc
@ -1307,6 +1307,7 @@ void gfx_display_deinit_white_texture(void)
|
||||
{
|
||||
if (gfx_white_texture)
|
||||
video_driver_texture_unload(&gfx_white_texture);
|
||||
gfx_white_texture = 0;
|
||||
}
|
||||
|
||||
void gfx_display_init_white_texture(void)
|
||||
|
@ -266,9 +266,9 @@ static uint8_t *rtga_tga_load(rtga_context *s,
|
||||
int RLE_repeating = 0;
|
||||
int RLE_count = 0;
|
||||
int read_next_pixel = 1;
|
||||
/* Needs to be at least 18 bytes to silence a GCC warning,
|
||||
/* Needs to be at least 24 bytes to silence a GCC warning,
|
||||
* only 4 are actually used */
|
||||
unsigned char raw_data[18] = {0};
|
||||
unsigned char raw_data[24] = {0};
|
||||
unsigned char *tga_palette = NULL;
|
||||
|
||||
/* Do I need to load a palette? */
|
||||
|
Loading…
Reference in New Issue
Block a user