rsx/gl/vk: Enable frame skipping

This commit is contained in:
kd-11 2017-06-30 01:20:23 +03:00
parent b95ffaf4dd
commit e9b8f94fb1
10 changed files with 102 additions and 26 deletions

View file

@ -45,10 +45,13 @@ void gl_gs_frame::delete_context(void* ctx)
delete (QOpenGLContext*)ctx;
}
void gl_gs_frame::flip(draw_context_t context)
void gl_gs_frame::flip(draw_context_t context, bool skip_frame)
{
gs_frame::flip(context);
//Do not swap buffers if frame skip is active
if (skip_frame) return;
((QOpenGLContext*)context.get())->makeCurrent(this);
((QOpenGLContext*)context.get())->swapBuffers(this);
}