Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to create opengl context in shader viewcontroller on iPhone 5 iOS 10 #16

Open
awhill19 opened this issue Mar 9, 2017 · 3 comments

Comments

@awhill19
Copy link

awhill19 commented Mar 9, 2017

Hi there,

I've just installed the app from the app store on my iphone and it is unable to create a GL context in the shader viewcontroller, leading to a "shader error" message. From a quick glance at the app code I'm guessing it may have something to do with the GL ES version. I'll dig around and try to find a fix.

@awhill19
Copy link
Author

awhill19 commented Mar 9, 2017

Yep, this is most likely the issue. OpenGL ES 3.0 hardware support started with iPhone 5s https://developer.apple.com/library/content/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/HardwareGPUInformation/HardwareGPUInformation.html#//apple_ref/doc/uid/TP40013599-CH106-SW1

Is it possible to support ES 2.0 as a fallback, or is shadertoy dependent on 3.0? Many people are still using iphone 5 with the latest iOS version

@Ninja-Koala
Copy link

Ninja-Koala commented Mar 10, 2017

I think this is a duplicate of issue #14

@reindernijhoff
Copy link
Member

Hi,

Yes you're right. I had to switch from OpenGL ES 2.0 to OpenGL ES 3.0. That's because OpenGL ES 3.0 has (almost) the same syntax as WebGL 2 which is the new WebGL version used on Shadertoy.

I will have a look if it's possible to make an OpenGL ES 2.0 fallback (and automatically rewrite the WebGL 2 shaders to a WebGL 1 syntax).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants