mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Fix for sixense debug draw after move to plugin.
static variables used to hold a Singleton cannot be shared across dll boundaries by default. This uses the globalInstance template to store the instance as a property on the QApplication.
This commit is contained in:
parent
e133bd867a
commit
1af780a664
1 changed files with 3 additions and 2 deletions
|
@ -8,10 +8,11 @@
|
|||
//
|
||||
|
||||
#include "DebugDraw.h"
|
||||
#include "SharedUtil.h"
|
||||
|
||||
DebugDraw& DebugDraw::getInstance() {
|
||||
static DebugDraw instance;
|
||||
return instance;
|
||||
static DebugDraw* instance = globalInstance<DebugDraw>("com.highfidelity.DebugDraw");
|
||||
return *instance;
|
||||
}
|
||||
|
||||
DebugDraw::DebugDraw() {
|
||||
|
|
Loading…
Reference in a new issue