glDeleteTextures / glGenTextures crash!


I have an application compiled with OpenGL 1.2 on SunOs 5.5.1 which uses 2D texturing on various objects. This works very well, BUT if try to back display on an SGI box, it crashes when I call glGenTextures() or glDeleteTextures(). Up until this point it is absolutely fine!

Hope someone can help.