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'm trying to use GLSurfaceView with a custom config chooser (to enable multisampling). In the constructor of my class (derived from GLSurfaceView) I call the following:
SetEGLConfigChooser (new MultisampleConfigChooser ());
SetRenderer (new OpenGLRenderer (context, this));
where MultisampleConfigChosser is my implementation of Android.Opengl.GLSurfaceView.IEGLConfigChooser and OpenGLRenderer is my renderer class (implemented GLSurfaceView.IRenderer).
ChooseConfig method of the MultisampleConfigChooser class doesn't fire at all.
It can be reproduced with the "GLNativeES20" sample. Just add a custom configchooser into that application.
how does your chooser class look like?
I tried to create an empty chooser class and put it to GLNativeES20 sample and it is reached when I run the app on device.
My empty chooser class looks like this:
class MyChooser : Java.Lang.Object, Android.Opengl.GLSurfaceView.IEGLConfigChooser
public EGLConfig ChooseConfig (IEGL10 egl, EGLDisplay display)
Console.WriteLine ("choose config called");
Hopefully that will help you.
@Mate, Does comment#3 helps you? Are you still getting same behavior?
Thank you very much guys it solved my problem. I don't really know what was the problem with my chooser class, but I rebuilt it with the base of your code and it works perfectly.
Thanks for responding with the positive result!