Create a new (temporary) project for the cross desktop gl project template. There are some files you need to add to your project to get it to work with the current develop build. Be sure that the files get put in the same place and marked as content. Should be like 11 or so files, some in a sub directory. For windows only, you will only need a subset of them, as the others are for linux or mac. If you are windows only, then you can edit the config file to remove the others.
I got my OpenGL game working by modifying the project and adding the necessary files.
However, my Android project now fails to run with the following error:
System.InvalidOperationException: AL.LoadAll() needs a current AudioContext.
I am currently not using any Audio in the game… so not sure what’s causing the problem. I did create a blank Android project using 3.6 and compared it to my Android project and it looks the same.
On a slightly different note… another warning I now seem to be getting with my Android project (I may have also been getting it with my 3.5 project and never noticed it) is that I have some other reference projects which are used by both the Android and the OpenGL project… and when I compile the Android project I see the following warning:
2> No way to resolve conflict between "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
2>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2221,3): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
This seems to be due to the fact that the core .net assemblies using by Android (e.g. System) are different from the ones that are used by the shared projects i.e. MonoAndroid vs. MS .Net 4.5
I am not sure if they are contributing to the Audio context error (I suspect not)…
I added a sound to my test application and get the same error on Android and iOS as well. I created an issue for it #5074. I do not get any error resolving a conflict for my test. On each of the platforms for me, I get various warnings that I ignore without problems.
You should probably change the title of the bug… The current title sounds less serious than it actually is.
Right now you cant even run any game on Android due to the bug. The framework audio initialization seems to be failing, even if you are not using audio.