GLES30.glGetUniformLocation() randomly fails

Advertisements I have a method in my shader class that I use to get my Uniform variables locations, but it seems to fail on specific variables with no reason… Here’s my getUnfiform location method (in debug mode): public int getUniformLocation(String uniform){ int a = GLES30.glGetUniformLocation(programID,uniform); if(a == -1){ Log.e("gul","an error occured : " + uniform… Read More GLES30.glGetUniformLocation() randomly fails