View Full Version : glGenTextures() returns 0??
10-08-2000, 05:07 PM
I've been using glGenTextures(1, &some_unsigned_int), and it keeps returning 0, which the Red Book says
'Zero is a reserved texrue name and is never returned as atexture name by glGenTextures().'
What does this mean?!!!
It basically means you should never use 0 as a texture name if you allocate textures on your own.
And why it always returns zero, I don't know. Have you created an OpenGL context at all?
10-09-2000, 02:22 AM
Yeah... I've got coloured polys rendering.. just cant get textures to work...
I've got essentially identical tga loading routines and gl context setup code in two projects... textures work in one, and not the other! go figure!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.