Skip to content

Commit 733772c

Browse files
committed
Fix resolution warning
1 parent 241068c commit 733772c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Scripts/GameRecorder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void Start()
8181
_gameHeight = Screen.height - (Screen.height % 4);
8282

8383
// if custom render texture is not set and the screen w and h is not divisible by 4, print a warning
84-
if (CaptureRenderTexture == null && (_gameWidth % 4 != 0 || _gameHeight % 4 != 0))
84+
if (CaptureRenderTexture == null && (Screen.width % 4 != 0 || Screen.height % 4 != 0))
8585
{
8686
UnityEngine.Debug.LogWarning("Current screen width and height are not divisible by 4. " +
8787
"This may cause severe performance issues.");

0 commit comments

Comments
 (0)