glDetachShader causes problems on some mobile platforms like Kindle Fire...

... rev 1. Replaced with glDeleteShader. This is the recommended practice. See the comments on : http://stackoverflow.com/questions/9113154/proper-way-to-delete-glsl-shader