Use 16bit depth format (we don't use stencil in default framebuffer)

This commit is contained in:
Benau 2019-07-16 01:43:47 +08:00
parent 48fedb48c7
commit 3e912900fb

View File

@ -192,8 +192,7 @@ namespace irr
self = [super initWithFrame:(frame) context:(eagl_context)]; self = [super initWithFrame:(frame) context:(eagl_context)];
if (self) if (self)
{ {
self.drawableDepthFormat = GLKViewDrawableDepthFormat24; self.drawableDepthFormat = GLKViewDrawableDepthFormat16;
self.drawableStencilFormat = GLKViewDrawableStencilFormat8;
self.multipleTouchEnabled = YES; self.multipleTouchEnabled = YES;
Device = device; Device = device;
} }