Max Viewport Resolution / Max Stack Depths

Hi,
I need to clarify a couple of points …

  1. I need a fairly high resolution in a selection routine and set the viewport size to 65536 (I’d come across a reference to this figure). Anyway, I suspect that the reference is wrong … do I have to use the values returned from a glGet using GL_MAX_VIEWPORT_DIMS bearing in mind that I’m doing a GL_SELECT ?
    (I need to use a viewport size of about 2048 … is that going to be fairly typical if I can’t use 65536 ?)

  2. I’m picking up to a maximum of 120 named objects … am I safe in assuming that all cards support a name stack of at least 128 ?

If these values are exceeded, could this result in a card crash ? … we’ve been experiencing problems with an ATI 9700 Pro.

Thanks

Andrew

Hi !

You can’t assume anything about maximum values even though there are some minimum values specified, GL_NAME_STACK_DEPTH specifies the name stack depth, I am not sure what the minimum value is, but I would recommend that you download the OpenGL spec pdf file it’s all in there.

Mikael