Buffer checking in lastest build

Started by cbarrett1974, March 03, 2004, 14:09:58

Previous topic - Next topic

cbarrett1974

Hi.  

I've got some code using glGetBool/Float/Integer, and it seems there is some buffer checking going on that requires 16 available bytes/floats/int in the destination buffer.

Is this there for buffer safety reasons?  I've got no problem with using buffers with 16 size anyway - just curious.

Cheers,
Chris.

princec

Yes, it's a security measure. We insist on 16 elements remaining in a buffer before we allow a get into it (as GL could quite easily overwrite RAM past the end of the buffer - blam!). Buffer checking code is not entirely complete yet.

Cas :)