How can I check wether OGL failed to create a texture?

I’d like to know how to tell wether a certain texture could not be created by OGL.
The redbook tells me that glTexImage2D() is a void, so this won’t help me.
Thanks for any help!

You should get something from glGetError() if there’s some major problem. You could also use glGetTexParameter() or glAreTexturesResident() if you want to find out if the texture is resident.

I am using glGetTexLevelParameter() to query the width of the newly created texture.