Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I tried to port an application from Mono to Android into MonoTouch.
I have a simple 3d scene with depth enabled.
Here is the code I use:
And clearing depth to 1 when i start to draw my scene.
I works perfectly fine in Android, but when i load the same code in Monotouch depth test is never enabled.
Ok found solution, createframebuffer in iOS, unlike in Android, does not create
depth buffer initially, so this added in CreateFrameBuffer override does the work.
uint depthRenderBuffer = 0;
GL.GenRenderbuffers (1,ref depthRenderBuffer);
GL.BindRenderbuffer (All.Renderbuffer, depthRenderBuffer);
GL.RenderbufferStorage (All.Renderbuffer, All.DepthComponent16, Size.Width, Size.Height);
GL.FramebufferRenderbuffer (All.Framebuffer, All.DepthAttachment, All.Renderbuffer, depthRenderBuffer);