Skip to content

Commit

Permalink
set UwcWindowTexture.window before onWindowChanged invoke #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Feb 11, 2019
1 parent eb7f5c0 commit dca900c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/uWindowCapture/Scripts/UwcWindowTexture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ public UwcWindow window
window_.onCaptured.RemoveListener(OnCaptured);
}

onWindowChanged_.Invoke(value, window_);
var old = window_;
window_ = value;
onWindowChanged_.Invoke(window_, old);

if (window_ != null) {
shouldUpdateWindow = false;
Expand Down

0 comments on commit dca900c

Please sign in to comment.