From dcd66a36f95ba234b3465501326b41d633079757 Mon Sep 17 00:00:00 2001 From: Nikos Kastellanos Date: Thu, 26 Dec 2024 21:02:14 +0200 Subject: [PATCH] refactor Cardboard EndDraw() --- .../Game/.CardboardLegacy/ConcreteGraphicsDeviceManager.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Platforms/Game/.CardboardLegacy/ConcreteGraphicsDeviceManager.cs b/Platforms/Game/.CardboardLegacy/ConcreteGraphicsDeviceManager.cs index 8243d893d66..1ae8f6415a8 100644 --- a/Platforms/Game/.CardboardLegacy/ConcreteGraphicsDeviceManager.cs +++ b/Platforms/Game/.CardboardLegacy/ConcreteGraphicsDeviceManager.cs @@ -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(); } }