From 3e912900fbb5f20a0d08eb559262b6e241fa2cdd Mon Sep 17 00:00:00 2001 From: Benau Date: Tue, 16 Jul 2019 01:43:47 +0800 Subject: [PATCH] Use 16bit depth format (we don't use stencil in default framebuffer) --- lib/irrlicht/source/Irrlicht/CIrrDeviceiOS.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceiOS.mm b/lib/irrlicht/source/Irrlicht/CIrrDeviceiOS.mm index 053121f43..13e2fe6dc 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceiOS.mm +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceiOS.mm @@ -192,8 +192,7 @@ namespace irr self = [super initWithFrame:(frame) context:(eagl_context)]; if (self) { - self.drawableDepthFormat = GLKViewDrawableDepthFormat24; - self.drawableStencilFormat = GLKViewDrawableStencilFormat8; + self.drawableDepthFormat = GLKViewDrawableDepthFormat16; self.multipleTouchEnabled = YES; Device = device; }