mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(GL1) Update code so that GL Hard Sync will work with menu
enabled [Hard sync doesn't seem implemented for GL1 anyway]
This commit is contained in:
parent
282c8ddc5f
commit
d04dee7ee0
@ -949,16 +949,18 @@ static bool gl1_gfx_frame(void *data, const void *frame,
|
||||
}
|
||||
#endif
|
||||
|
||||
/* check if we are fast forwarding or in menu, if we are ignore hard sync */
|
||||
if (hard_sync
|
||||
/* check if we are fast forwarding or in menu,
|
||||
if we are ignore hard sync */
|
||||
if ( hard_sync
|
||||
&& !video_info->input_driver_nonblock_state
|
||||
&& !gl1->menu_texture_enable)
|
||||
)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glFinish();
|
||||
}
|
||||
|
||||
if(draw){
|
||||
if (draw)
|
||||
{
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user