Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Changed the stack behavior with regards to depthTextureMode handling #173

Merged
merged 1 commit into from May 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions PostProcessing/Runtime/PostProcessingBehaviour.cs
Expand Up @@ -143,7 +143,7 @@ void OnPreCull()

// Find out which camera flags are needed before rendering begins
// Note that motion vectors will only be available one frame after being enabled
var flags = DepthTextureMode.None;
var flags = context.camera.depthTextureMode;
foreach (var component in m_Components)
{
if (component.active)
Expand Down Expand Up @@ -329,10 +329,6 @@ void OnDisable()

m_Components.Clear();

// Reset camera mode
if (m_Camera != null)
m_Camera.depthTextureMode = DepthTextureMode.None;

// Factories
m_MaterialFactory.Dispose();
m_RenderTextureFactory.Dispose();
Expand Down