[Solved] iOS GLES 3.0

Hi jnoyola, I eventually got MRT working for iOS as I mention in this post by changing the “major” version param on GraphicsContext init to “3”. I made this change in GraphicsContext.cs. This is not the only change I had to make because there are a few places where there were namespace usings for GLES 2.0 like this:

using OpenTK.Graphics.ES20;

as you can see here:

I changed these places to use “OpenTK.Graphics.ES30”

When I made this change there were a few other enum changes I had to make due to them not available in the OpenTK.Graphics.ES30 namespace and when I compiled and run my iOS app I can then use multiple render targets.

There may be a more elegant way to target GLES 3.0 via protobuild but I have not checked if thats possible yet. It would be nice because then one does not have to change these by hand. By default the projects seem’d geared towards GLES 2.0 from what I’ve seen