View Full Version : glGetName?
10-08-2011, 01:04 PM
Supposing I use the glPushName() . . . glPopName() functions, how would I be able to retrieve the current name pushed? I need it for debugging purposes.
10-08-2011, 01:13 PM
Haven't checked the spec, but from the man pages there does not seem to be a glGet*() function for the element on top of the name stack like there is for the matrix stacks.
You could use your own wrapper functions myGlPushName(), myGlPopName() that in addition to calling the regular OpenGL functions also push the name on a stack that you keep. For release builds you could omit your own stack and only call the GL functions.
10-08-2011, 03:36 PM
Not a bad idea. Thanks. That got me past a bug.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.