mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
(sdl2_gfx.c) Check if pointer is not NULL first
This commit is contained in:
parent
d4c0a09a03
commit
2d8ef11944
@ -605,6 +605,8 @@ static void sdl2_gfx_free(void *data)
|
||||
static void sdl2_gfx_set_rotation(void *data, unsigned rotation)
|
||||
{
|
||||
sdl2_video_t *vid = (sdl2_video_t*)data;
|
||||
|
||||
if (vid)
|
||||
vid->rotation = 270 * rotation;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user