glSelectBuffer float value for depth

BlitzMax Forums/BlitzMax OpenGL Programming/glSelectBuffer float value for depth

in glSelectBuffer the buffer is an int ptr, where really, it should be a bank ptr so you can peekint the name and peekfloat the depth (is this a bug?)

I can't seem to cast a bank ptr to an int ptr
giving it an array of ints works but the depth comes back as a very large -tive value for near getting nearer zero as the distance increases

any ideas?