(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
|
#endif
|
||||||
|
|
||||||
/* check if we are fast forwarding or in menu, if we are ignore hard sync */
|
/* check if we are fast forwarding or in menu,
|
||||||
if (hard_sync
|
if we are ignore hard sync */
|
||||||
|
if ( hard_sync
|
||||||
&& !video_info->input_driver_nonblock_state
|
&& !video_info->input_driver_nonblock_state
|
||||||
&& !gl1->menu_texture_enable)
|
)
|
||||||
{
|
{
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
glFinish();
|
glFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(draw){
|
if (draw)
|
||||||
|
{
|
||||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue