Add Etc2 texture format support.#6864
Add Etc2 texture format support.#6864Jjagg merged 1 commit intoMonoGame:developfrom ryancheung:etc2-texture-format-support
Conversation
|
I really need the ETC2 texture formats. 😃 |
| public GraphicsContext () | ||
| { | ||
| Context = new EAGLContext (EAGLRenderingAPI.OpenGLES2); | ||
| Context = new EAGLContext (EAGLRenderingAPI.OpenGLES3); |
There was a problem hiding this comment.
Documentation is sparse, so I don't know what happens here if the device does not support GLES3. I assume it will either throw or return null. I don't see an easy way to fallback to GLES2 in the API. I think we need to create a context and use glGetString to check the supported version if we want to continue to support GLES2.
Not sure if we should still support GLES2 on iOS though. A quick search indicates iPhone supported GLES3 in iOS 7+ since iPhone 5S/iPad Air.
There was a problem hiding this comment.
Yeah, iOS devices have good upgrade rate to latest version.
There was a problem hiding this comment.
Yeah i think for now it would be best to fallback to GLES2 if possible. It would suck to hurt install base of existing users unless we really have to.
| if (major >= 3) | ||
| Context = new EAGLContext (EAGLRenderingAPI.OpenGLES3); | ||
| else | ||
| Context = new EAGLContext (EAGLRenderingAPI.OpenGLES2); |
There was a problem hiding this comment.
I just added the fallback check. Could you be sure this is capable? @tomspilman @Jjagg
|
Commit Edit: Init EGALContext with GLES3 if ios version is 7 or above. |
|
Yeah, this is great! Thanks @ryancheung! |
No description provided.