Hey guys, i've been trying to port my XNA game to Android using this tot:
http://www.youtube.com/watch?v=S4kbqU6feiA[
^]
The problem is that when i run the program. I'm getting an error:
"Could not create OpenGLES 2.0 frame buffer"
Does anyone know what i should do? I have absolutly no idea what i should to.
I dont know one single thing about OpenGL/OpenTK.
PS. tell me if u need more code or so.
Thx - Carl
protected override void CreateFrameBuffer()
{
Android.Util.Log.Debug("MonoGame", "AndroidGameWindow.CreateFrameBuffer");
try
{
GLContextVersion = GLContextVersion.Gles2_0;
try
{
base.CreateFrameBuffer();
}
catch(Exception)
{
GraphicsMode = new AndroidGraphicsMode(0, 0, 0, 0, 0, false);
base.CreateFrameBuffer();
}
All status = GL.CheckFramebufferStatus(All.Framebuffer);
Android.Util.Log.Debug("MonoGame", "Framebuffer Status: " + status.ToString());
}
catch (Exception)
{
throw new NotSupportedException("Could not create OpenGLES 2.0 frame buffer");
}
if (_game.GraphicsDevice != null && _contextWasLost)
{
_game.GraphicsDevice.Initialize();
Android.Util.Log.Debug("MonoGame", "Begin reloading graphics content");
Microsoft.Xna.Framework.Content.ContentManager.ReloadGraphicsContent();
Android.Util.Log.Debug("MonoGame", "End reloading graphics content");
_game.graphicsDeviceManager.OnDeviceReset(EventArgs.Empty);
_game.GraphicsDevice.OnDeviceReset();
_contextWasLost = false;
}
MakeCurrent();
}
Edit(24/1-13): Im trying to not port the C# to an other language, it might be the good way to make it work but i want to be able to fix/update/etc easy without alot of porting to other languages in my program.