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)];
if (self)
{
self.drawableDepthFormat = GLKViewDrawableDepthFormat24;
self.drawableStencilFormat = GLKViewDrawableStencilFormat8;
self.drawableDepthFormat = GLKViewDrawableDepthFormat16;
self.multipleTouchEnabled = YES;
Device = device;
}