Warnings/GLWindow: Initialize the members of OpenGLWindow in the order they are defined.
This commit is contained in:
parent
d17557c02c
commit
64b612bd60
@ -104,8 +104,8 @@ void EmuThread::run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OpenGLWindow::OpenGLWindow(QWindow* parent, QWidget* event_handler, QOpenGLContext* shared_context)
|
OpenGLWindow::OpenGLWindow(QWindow* parent, QWidget* event_handler, QOpenGLContext* shared_context)
|
||||||
: QWindow(parent), event_handler(event_handler),
|
: QWindow(parent), context(new QOpenGLContext(shared_context->parent())),
|
||||||
context(new QOpenGLContext(shared_context->parent())) {
|
event_handler(event_handler) {
|
||||||
|
|
||||||
// disable vsync for any shared contexts
|
// disable vsync for any shared contexts
|
||||||
auto format = shared_context->format();
|
auto format = shared_context->format();
|
||||||
|
Loading…
Reference in New Issue
Block a user