public override int PullResults()
{
// note: flush doesn't apply to GL
// default to returning a high count. will be set otherwise if the query runs
lastFragmentCount = 100000;
if ( isSupportedNV )
{
Gl.glGetOcclusionQueryivNV( this.queryId, Gl.GL_PIXEL_COUNT_NV, out lastFragmentCount );
}
else if ( isSupportedARB )
{
Gl.glGetQueryObjectivARB( this.queryId, Gl.GL_QUERY_RESULT_ARB, out lastFragmentCount );
}
return lastFragmentCount;
}