Skip to content

Commit 520e7fa

Browse files
authored
Update ImGuiRenderer.cs (#365)
1 parent 96ca71e commit 520e7fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ImGui.NET.SampleProgram.XNA/ImGuiRenderer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ protected virtual Effect UpdateEffect(Texture2D texture)
211211
/// </summary>
212212
protected virtual void UpdateInput()
213213
{
214+
if (!_game.IsActive) return;
215+
214216
var io = ImGui.GetIO();
215217

216218
var mouse = Mouse.GetState();

0 commit comments

Comments
 (0)