The getGlobalName function returns 0 on error. There are many places were no error checking is done after calling it to get a shader or program name. Typically this shouldn't be an issue, since the follwing OpenGL call using a value of 0 will generated the required GL_INVALID_VALUE, but this does not always happen. Change-Id: I8edf2b152978ffd8626f8b4d778cc624f2a3bec3