diff --git a/CLA.md b/CLA.md index d813558..397c2be 100644 --- a/CLA.md +++ b/CLA.md @@ -19,3 +19,5 @@ Add your GitHub username as a new entry at the end of the list. Do not alter oth - BOLL7708 - jeppevinkel +- prjanitor + diff --git a/OpenVROverlayPipe/GraphicsSingleton.cs b/OpenVROverlayPipe/GraphicsSingleton.cs index 0ccea4e..82bc88b 100644 --- a/OpenVROverlayPipe/GraphicsSingleton.cs +++ b/OpenVROverlayPipe/GraphicsSingleton.cs @@ -63,6 +63,7 @@ internal void OnRender(TimeSpan delta) foreach (var overlay in Session.Overlays.Values) { + if (overlay == null || overlay.Animator == null) continue; _shader3d?.Use(); _shader3d?.SetInt("tex_index", overlay.Animator.GetFrame()); @@ -79,6 +80,7 @@ internal void OnRender(TimeSpan delta) foreach (var overlay in Session.Overlays.Values) { + if (overlay == null || overlay.Animator == null) continue; overlay.Animator.PostRender(); } }