Fix crash in glDeleteShaders.