That's not what that means. The GL_QUERY_COUNTER_BITS is the number of bits for the sample counter within a query object. That is, how many samples can a single query count. If it returned 24, then that means that a particular occlusion query object's query count will only be able to count up to 16,777,216 samples. So if you render more than that many samples within a single query run, then the SAMPLES_PASSED count will be undefined.
It has nothing to do with how many query objects you can get, nor does it affect how many query objects can be active at any one time. As long as you don't try to begin a query while that query is active, you're fine.



Reply With Quote
