Revert "(GX Video) Only update texture if frame is not NULL"
This reverts commit 78027ee920
.
the logic for this is already in update_textures and it broke menu rendering
This commit is contained in:
parent
3273ccb5d6
commit
376317309e
|
@ -805,7 +805,10 @@ static bool gx_frame(void *data, const void *frame,
|
|||
else
|
||||
gx->msg[0] = 0;
|
||||
|
||||
if (!frame && g_extern.draw_menu)
|
||||
if(!frame && !g_extern.draw_menu)
|
||||
return true;
|
||||
|
||||
if (!frame)
|
||||
width = height = 4; // draw a black square in the background
|
||||
|
||||
if(should_resize)
|
||||
|
@ -826,9 +829,7 @@ static bool gx_frame(void *data, const void *frame,
|
|||
|
||||
g_draw_done = false;
|
||||
g_current_framebuf ^= 1;
|
||||
|
||||
if(frame)
|
||||
update_textures(frame, width, height, pitch);
|
||||
update_textures(frame, width, height, pitch);
|
||||
|
||||
//if (frame)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue