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:
Anthony J. Thibault 2015-12-10 15:05:27 -08:00
parent e133bd867a
commit 1af780a664

View file

@ -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() {