citra-emu
/
citra-canary
Archived
1
0
Fork 0

Add missing key events and also try to glFinish after swapping

This commit is contained in:
James Rowe 2019-09-24 21:47:00 -06:00
parent 68052de8a0
commit 86f203e6e8
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include <QOffscreenSurface>
#include <QOpenGLContext>
#include <QOpenGLFunctions>
#include <QOpenGLFunctions_3_3_Core>
#include <QOpenGLWindow>
#include <QScreen>
#include <QWindow>
@ -104,6 +105,8 @@ void OpenGLWindow::Present() {
context->makeCurrent(this);
VideoCore::g_renderer->TryPresent(100);
context->swapBuffers(this);
auto f = context->versionFunctions<QOpenGLFunctions_3_3_Core>();
f->glFinish();
QWindow::requestUpdate();
}
@ -116,6 +119,8 @@ bool OpenGLWindow::event(QEvent* event) {
case QEvent::MouseButtonRelease:
case QEvent::MouseButtonDblClick:
case QEvent::MouseMove:
case QEvent::KeyPress:
case QEvent::KeyRelease:
case QEvent::FocusIn:
case QEvent::FocusOut:
case QEvent::FocusAboutToChange: