Skip to content

Commit

Permalink
fix exception (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
stilnat authored Feb 21, 2024
1 parent 42dc889 commit 17356a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Assets/Scripts/SS3D/Systems/Selection/SelectionCamera.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
using SS3D.Core.Behaviours;
using SS3D.Core;
using UnityEngine.UI;
using UnityEngine.Experimental.Rendering;
using UnityEngine.InputSystem;
using InputSystem = SS3D.Systems.Inputs.InputSystem;
Expand Down Expand Up @@ -105,7 +102,7 @@ private void OnPostRender()
}
else
{
_readbackTexture.ReadPixels(new Rect(pos.x, Screen.height - pos.y, 1, 1), 0, 0, false);
_readbackTexture.ReadPixels(new Rect(pos.x, Screen.height-pos.y-1, 1, 1), 0, 0, false);
col = _readbackTexture.GetPixel(0, 0);
}

Expand Down

0 comments on commit 17356a9

Please sign in to comment.