if(textureUnit >= 0 && textureUnit < numTotalTexUnits && textureUnit < idCache.length) {
if(textureUnit >= 0 && textureUnit < idCache.length) {
    public final int getTextureID(int textureUnit) {        if(textureUnit >= 0 && textureUnit < numTotalTexUnits && textureUnit < idCache.length) {            return idCache[textureUnit];        } else {            return 0;        }    }