I'm dealing with an old large project using fixed rendering pipeline, and the current project used the name stack to pick an object.
Now I need to change one object in the project to the VAO (glDrawElements...) mode, while the other objects remain to draw by glBegin/glEnd. As a result, the original picking mechanism cannot pick the VAO object anymore.
Now I'm wondering whether the name stack method can be used to pick an VAO object? If not, how to pick it without disturbing the rendering and selection of other objects.