mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(sdl_dingux) Put conditional around access of 'frame' pointer
This commit is contained in:
parent
513370f715
commit
fbfbb81133
@ -1122,13 +1122,16 @@ static bool sdl_rs90_gfx_frame(void *data, const void *frame,
|
|||||||
|
|
||||||
if (likely(vid->mode_valid))
|
if (likely(vid->mode_valid))
|
||||||
{
|
{
|
||||||
/* Blit frame to SDL surface */
|
if (likely(frame))
|
||||||
if (vid->rgb32)
|
{
|
||||||
sdl_rs90_blit_frame32(vid, (uint32_t*)frame,
|
/* Blit frame to SDL surface */
|
||||||
width, height, pitch);
|
if (vid->rgb32)
|
||||||
else
|
sdl_rs90_blit_frame32(vid, (uint32_t*)frame,
|
||||||
sdl_rs90_blit_frame16(vid, (uint16_t*)frame,
|
width, height, pitch);
|
||||||
width, height, pitch);
|
else
|
||||||
|
sdl_rs90_blit_frame16(vid, (uint16_t*)frame,
|
||||||
|
width, height, pitch);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* If current display mode is invalid,
|
/* If current display mode is invalid,
|
||||||
* just display an error message */
|
* just display an error message */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user