overte/libraries/shared/src/RenderForward.h
2019-05-13 09:58:55 -07:00

24 lines
No EOL
691 B
C

//
// Created by Sam Gondelman on 3/7/19.
// Copyright 2019 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
//
#ifndef hifi_RenderForward_h
#define hifi_RenderForward_h
#include <QString>
#include <QProcess>
#if defined(USE_GLES)
// This isn't necessary since android forces the forward renderer, but just in case
static bool RENDER_FORWARD = true;
#else
static const QString RENDER_FORWARD_STRING { "HIFI_RENDER_FORWARD" };
static bool RENDER_FORWARD = QProcessEnvironment::systemEnvironment().contains(RENDER_FORWARD_STRING);
#endif
#endif // hifi_RenderForward_h