Skip to content

Commit

Permalink
refactor Cardboard EndDraw()
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Dec 26, 2024
1 parent 40a9881 commit dcd66a3
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,16 @@ public override bool BeginDraw()

public override void EndDraw()
{
#if CARDBOARD
return; // On Cardboard, surface is presented by IRenderer.OnFinishFrame(...).
#endif

//base.EndDraw();

GraphicsDevice device = this.GraphicsDevice;
if (device != null)
{
// // Surface is presented by OnFinishFrame.
//device.Present();
device.Present();
}
}

Expand Down

0 comments on commit dcd66a3

Please sign in to comment.