mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(GX Video) Only update texture if frame is not NULL
This commit is contained in:
parent
3d2d4e4c18
commit
78027ee920
@ -806,10 +806,7 @@ static bool gx_frame(void *data, const void *frame,
|
|||||||
else
|
else
|
||||||
gx->msg[0] = 0;
|
gx->msg[0] = 0;
|
||||||
|
|
||||||
if(!frame && !menu_render)
|
if (!frame && menu_render)
|
||||||
return true;
|
|
||||||
|
|
||||||
if (!frame)
|
|
||||||
width = height = 4; // draw a black square in the background
|
width = height = 4; // draw a black square in the background
|
||||||
|
|
||||||
if(should_resize)
|
if(should_resize)
|
||||||
@ -830,7 +827,9 @@ static bool gx_frame(void *data, const void *frame,
|
|||||||
|
|
||||||
g_draw_done = false;
|
g_draw_done = false;
|
||||||
g_current_framebuf ^= 1;
|
g_current_framebuf ^= 1;
|
||||||
update_textures(frame, width, height, pitch);
|
|
||||||
|
if(frame)
|
||||||
|
update_textures(frame, width, height, pitch);
|
||||||
|
|
||||||
//if (frame)
|
//if (frame)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user