I am using JNI and NDK to build an OpenGL project, everything is ok on my phone (galaxy nexus), but i've tried to start this app on several tablet pcs (huawei and acer) and find a strange behaviour:
in my fragment shader there is a value:
uniform float current;
...
gl_FragColor = (...,current);
in my code i do:
g_currentAreaLoc = glGetUniformLocation(g_nGLESProgram, "current" );
...
glUseProgram(g_nGLESProgram);
glUniform1f(g_currentAreaLoc, area);
When i try this code on the phone everything is perfect but on tablets there is no expecting results.
BUT if i hadcode for example 0.0 instead of current - everything is ok on this tablet.
I can't figure out why this variable works on phone and there are troubles on tablets (maybe depends on OS version).