From f4c7ff604de6f269f32d166222a0c9740dfdebb1 Mon Sep 17 00:00:00 2001 From: Dan Bagnell Date: Mon, 3 Dec 2018 14:24:24 -0500 Subject: [PATCH] Fix texture cache dependencies. --- Source/Scene/PostProcessStageTextureCache.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Scene/PostProcessStageTextureCache.js b/Source/Scene/PostProcessStageTextureCache.js index c3a57eafa7e4..35879037d134 100644 --- a/Source/Scene/PostProcessStageTextureCache.js +++ b/Source/Scene/PostProcessStageTextureCache.js @@ -111,6 +111,9 @@ define([ } else { for (j = 1; j < length; ++j) { name = getLastStageName(composite.get(j)); + if (!defined(dependencies[name])) { + dependencies[name] = {}; + } dependencies[name][originalDependency] = true; } }