mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 14:04:23 +02:00
26 lines
845 B
C++
26 lines
845 B
C++
//
|
|
// Created by Bradley Austin Davis on 2014/04/13.
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
#include "OculusDebugDisplayPlugin.h"
|
|
#include <QtCore/QProcessEnvironment>
|
|
|
|
const QString OculusDebugDisplayPlugin::NAME("Oculus Rift (Simulator)");
|
|
|
|
static const QString DEBUG_FLAG("HIFI_DEBUG_OCULUS");
|
|
static bool enableDebugOculus = QProcessEnvironment::systemEnvironment().contains("HIFI_DEBUG_OCULUS");
|
|
|
|
bool OculusDebugDisplayPlugin::isSupported() const {
|
|
if (!enableDebugOculus) {
|
|
return false;
|
|
}
|
|
return OculusBaseDisplayPlugin::isSupported();
|
|
}
|
|
|
|
void OculusDebugDisplayPlugin::customizeContext() {
|
|
OculusBaseDisplayPlugin::customizeContext();
|
|
enableVsync(false);
|
|
}
|