PDA

View Full Version : How can I check wether OGL failed to create a texture?



B_old
07-20-2003, 06:59 AM
Hello.
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!

Rog
07-20-2003, 09:41 AM
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.

B_old
07-20-2003, 10:32 AM
Thanks.
I am using glGetTexLevelParameter() to query the width of the newly created texture.