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.
When attempting to use Vertex Buffer Objects in OpenGL code which is rendered in a OpenGLView, nothing is displayed on screen for physical Android devices. If I run the provided sample project using XAP, everything is displayed just fine (a colorful cube bounces around the screen). iOS devices work just fine as well (both simulator and physical). However, if I try to run this project on a physical android device, nothing is rendered.
Nexus 5 yields this output
[Adreno-EGLSUB] <SwapBuffers:1348>: Invalid native buffer. Failed to queueBuffer
[Adreno-EGLSUB] <updater_thread:436>: native buffer is NULL
Another friend of told me of the same error for his Motorolla device.
Additionally I have tested this on both a Galaxy S6 Edge, as well as a Galaxy Note 12.2, these give different outputs, and do not continuously output the previous error.
I found the bug with Xamarin.Forms 1.3.3, and since then have confirmed it with 1.4.3.
Created attachment 11894 [details]
Sample OpenGLView VBO project
the problem is not with VBO buffers, but with trying to set own framebuffer in the attached sample. GLSurfaceView (on Android) handles framebuffer creation/binding itself, so you don't need to create it. Just don't call CreateDisplayBuffers (); in Initialize () on Android and it should work OK.
If you need to choose the framebuffer configuration, use the http://developer.android.com/reference/android/opengl/GLSurfaceView.html#setEGLConfigChooser(boolean)
Hope this helps.
here's the right method doc
Thank you very much for these resources, my projects work very nicely now, sorry for the false bug-report, but thank you very much for your help