[android]fragment Shader Crashed My Application Only On Nexus 6
One feature from my application was implemented using OpenGL. Then I found this feature failed working on Nexus 6. I have two Nexus 6 to test. One crashed every time I used, but a
Solution 1:
The root cause is that I defined a variable using an uniform variable outside of the main block.
But I don't know why because:
- Most devices works well
- Only one Nexus 6 would crash
I searched for a while then found the following question and the answer:
Is it ever reasonable to do computations outside of main in an OpenGL shader?
But I'm not totally understand why most devices works well. Maybe someone could explain it for me. Thanks so much!
Post a Comment for "[android]fragment Shader Crashed My Application Only On Nexus 6"