mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:40:11 +02:00
Guard against unspecified deferredDebugMode
This commit is contained in:
parent
5c9c34377e
commit
1436b4f6b1
1 changed files with 8 additions and 0 deletions
|
@ -182,6 +182,14 @@ void DebugDeferredBuffer::run(const SceneContextPointer& sceneContext, const Ren
|
||||||
assert(renderContext->getArgs());
|
assert(renderContext->getArgs());
|
||||||
assert(renderContext->getArgs()->_viewFrustum);
|
assert(renderContext->getArgs()->_viewFrustum);
|
||||||
RenderArgs* args = renderContext->getArgs();
|
RenderArgs* args = renderContext->getArgs();
|
||||||
|
|
||||||
|
// Guard against unspecified modes
|
||||||
|
auto mode = renderContext->_deferredDebugMode;
|
||||||
|
if (mode > (int)CustomMode) {
|
||||||
|
renderContext->_deferredDebugMode = -1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
gpu::doInBatch(args->_context, [&](gpu::Batch& batch) {
|
gpu::doInBatch(args->_context, [&](gpu::Batch& batch) {
|
||||||
const auto geometryBuffer = DependencyManager::get<GeometryCache>();
|
const auto geometryBuffer = DependencyManager::get<GeometryCache>();
|
||||||
const auto framebufferCache = DependencyManager::get<FramebufferCache>();
|
const auto framebufferCache = DependencyManager::get<FramebufferCache>();
|
||||||
|
|
Loading…
Reference in a new issue