From cdf621e8d008a76090786422beb6a520a872d078 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Mon, 7 Dec 2015 09:11:41 -0800 Subject: [PATCH] Remove unnecessary moveToThread to remove warning --- .../src/display-plugins/OpenGLDisplayPlugin.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libraries/display-plugins/src/display-plugins/OpenGLDisplayPlugin.cpp b/libraries/display-plugins/src/display-plugins/OpenGLDisplayPlugin.cpp index 8593da1573..332bbe63ed 100644 --- a/libraries/display-plugins/src/display-plugins/OpenGLDisplayPlugin.cpp +++ b/libraries/display-plugins/src/display-plugins/OpenGLDisplayPlugin.cpp @@ -14,7 +14,6 @@ #include #include -#include #include #include @@ -46,7 +45,6 @@ public: // Extra code because of the widget 'wrapper' context _context = context; _context->moveToThread(this); - _context->contextHandle()->moveToThread(this); } virtual void run() override { @@ -57,7 +55,6 @@ public: Lock lock(_mutex); // Move the context to the main thread _context->moveToThread(qApp->thread()); - _context->contextHandle()->moveToThread(qApp->thread()); _pendingMainThreadOperation = false; // Release the main thread to do it's action _condition.notify_one(); @@ -104,7 +101,6 @@ public: _context->doneCurrent(); _context->moveToThread(qApp->thread()); - _context->contextHandle()->moveToThread(qApp->thread()); } void withMainThreadContext(std::function f) { @@ -120,7 +116,6 @@ public: // Move the context back to the presentation thread _context->moveToThread(this); - _context->contextHandle()->moveToThread(this); // restore control of the context to the presentation thread and signal // the end of the operation