mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 04:28:07 +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()->_viewFrustum);
|
||||
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) {
|
||||
const auto geometryBuffer = DependencyManager::get<GeometryCache>();
|
||||
const auto framebufferCache = DependencyManager::get<FramebufferCache>();
|
||||
|
|
Loading…
Reference in a new issue