From 64b612bd6085ec848b82c6f59c96c7c3f48643c2 Mon Sep 17 00:00:00 2001 From: Subv Date: Fri, 10 Apr 2020 18:37:45 -0500 Subject: [PATCH] Warnings/GLWindow: Initialize the members of OpenGLWindow in the order they are defined. --- src/citra_qt/bootmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 2f6ab6829..ddabad13b 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -104,8 +104,8 @@ void EmuThread::run() { } OpenGLWindow::OpenGLWindow(QWindow* parent, QWidget* event_handler, QOpenGLContext* shared_context) - : QWindow(parent), event_handler(event_handler), - context(new QOpenGLContext(shared_context->parent())) { + : QWindow(parent), context(new QOpenGLContext(shared_context->parent())), + event_handler(event_handler) { // disable vsync for any shared contexts auto format = shared_context->format();