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

Commit 3335932

Browse files
committed
Fixed Graphics.Copy error in the scene view when toggling the lighting on/off in deferred
1 parent 6036509 commit 3335932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Runtime/Effects/ScreenSpaceReflections.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public override DepthTextureMode GetCameraFlags()
9898

9999
internal void CheckRT(ref RenderTexture rt, int width, int height, RenderTextureFormat format, FilterMode filterMode, bool useMipMap)
100100
{
101-
if (rt == null || !rt.IsCreated() || rt.width != width || rt.height != height)
101+
if (rt == null || !rt.IsCreated() || rt.width != width || rt.height != height || rt.format != format)
102102
{
103103
if (rt != null)
104104
rt.Release();

0 commit comments

Comments
 (0)