mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:37:48 +02:00
fixed the getViewFUrstum warning in DEBUG mode
This commit is contained in:
parent
c7540af787
commit
f96079f4f9
1 changed files with 6 additions and 3 deletions
|
@ -2615,7 +2615,12 @@ glm::vec3 Application::getSunDirection() {
|
||||||
return skyStage->getSunLight()->getDirection();
|
return skyStage->getSunLight()->getDirection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME, preprocessor guard this check to occur only in DEBUG builds
|
||||||
|
static QThread * activeRenderingThread = nullptr;
|
||||||
|
|
||||||
void Application::updateShadowMap() {
|
void Application::updateShadowMap() {
|
||||||
|
activeRenderingThread = QThread::currentThread();
|
||||||
|
|
||||||
PerformanceTimer perfTimer("shadowMap");
|
PerformanceTimer perfTimer("shadowMap");
|
||||||
QOpenGLFramebufferObject* fbo = DependencyManager::get<TextureCache>()->getShadowFramebufferObject();
|
QOpenGLFramebufferObject* fbo = DependencyManager::get<TextureCache>()->getShadowFramebufferObject();
|
||||||
fbo->bind();
|
fbo->bind();
|
||||||
|
@ -2765,6 +2770,7 @@ void Application::updateShadowMap() {
|
||||||
fbo->release();
|
fbo->release();
|
||||||
|
|
||||||
glViewport(0, 0, _glWidget->getDeviceWidth(), _glWidget->getDeviceHeight());
|
glViewport(0, 0, _glWidget->getDeviceWidth(), _glWidget->getDeviceHeight());
|
||||||
|
activeRenderingThread = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
const GLfloat WORLD_AMBIENT_COLOR[] = { 0.525f, 0.525f, 0.6f };
|
const GLfloat WORLD_AMBIENT_COLOR[] = { 0.525f, 0.525f, 0.6f };
|
||||||
|
@ -2825,9 +2831,6 @@ QImage Application::renderAvatarBillboard() {
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME, preprocessor guard this check to occur only in DEBUG builds
|
|
||||||
static QThread * activeRenderingThread = nullptr;
|
|
||||||
|
|
||||||
ViewFrustum* Application::getViewFrustum() {
|
ViewFrustum* Application::getViewFrustum() {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (QThread::currentThread() == activeRenderingThread) {
|
if (QThread::currentThread() == activeRenderingThread) {
|
||||||
|
|
Loading…
Reference in a new issue