[Vita][GL] Fix returning to menu and clear for fake hw render

This commit is contained in:
Francisco José García García 2020-07-09 18:48:08 +02:00
parent 375d6b9a2c
commit dc01bf8d46
1 changed files with 4 additions and 7 deletions

View File

@ -708,9 +708,6 @@ static bool gl1_gfx_frame(void *data, const void *frame,
video_info->xmb_shadows_enable = false; video_info->xmb_shadows_enable = false;
video_info->menu_shader_pipeline = 0; video_info->menu_shader_pipeline = 0;
if (!frame || !frame_width || !frame_height)
return true;
if (gl1->should_resize) if (gl1->should_resize)
{ {
gfx_ctx_mode_t mode; gfx_ctx_mode_t mode;
@ -757,7 +754,7 @@ static bool gl1_gfx_frame(void *data, const void *frame,
pot_width = get_pot(width); pot_width = get_pot(width);
pot_height = get_pot(height); pot_height = get_pot(height);
if ( frame == RETRO_HW_FRAME_BUFFER_VALID || ( if ( !frame || frame == RETRO_HW_FRAME_BUFFER_VALID || (
frame_width == 4 && frame_width == 4 &&
frame_height == 4 && frame_height == 4 &&
(frame_width < width && frame_height < height)) (frame_width < width && frame_height < height))
@ -792,9 +789,6 @@ static bool gl1_gfx_frame(void *data, const void *frame,
if (draw) if (draw)
{ {
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
@ -914,6 +908,9 @@ static bool gl1_gfx_frame(void *data, const void *frame,
glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT);
glFinish(); glFinish();
} }
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
gl1_context_bind_hw_render(gl1, true); gl1_context_bind_hw_render(gl1, true);