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

The shader implementation or juce::OpenGL crashes some Android devices #4

Open
atsushieno opened this issue Apr 29, 2023 · 2 comments

Comments

@atsushieno
Copy link
Owner

This happens on Lenovo TB125FU:

21:49:00.104 22844-22923 libc org....juce.vitaloid A /Users/atsushi/sources/AAP/aap-juce-vital/apps/vital/plugin/builds/Android/app/../../../../src/interface/look_and_feel/shaders.cpp:1110: GLuint Shaders::createVertexShader(juce::OpenGLExtensionFunctions &, Shaders::VertexShader) const: assertion "checkShaderCorrect(extensions, shader_id)" failed
21:49:00.105 22844-22923 libc org....juce.vitaloid A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 22923 (Thread-2), pid 22844 (s.juce.vitaloid)

Meanwhile it just works on Pixel4a 5G, so it could be an issue on the Lenovo tablet.

@Larcaster
Copy link

Try to add "precision mediump float;\n" in every vertex shader before "void main() {\n" section

@atsushieno
Copy link
Owner Author

Thanks for diving into the issue.

I think I already handled that:

+ return String("#version 300 es\nprecision mediump float;\n") + "out mediump vec4 fragColor;\n" +

I'm not sure if there is any way to verify it is inserted at runtime though...!

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

2 participants