|
|
@ -2803,11 +2803,15 @@ IOcclusionQuery::TOcclusionType COcclusionQueryGL::getOcclusionType()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GLuint result;
|
|
|
|
GLuint result;
|
|
|
|
|
|
|
|
nglGetQueryObjectuivARB(ID, GL_QUERY_RESULT_AVAILABLE, &result);
|
|
|
|
|
|
|
|
if (result != GL_FALSE)
|
|
|
|
|
|
|
|
{
|
|
|
|
nglGetQueryObjectuivARB(ID, GL_QUERY_RESULT, &result);
|
|
|
|
nglGetQueryObjectuivARB(ID, GL_QUERY_RESULT, &result);
|
|
|
|
OcclusionType = result != 0 ? NotOccluded : Occluded;
|
|
|
|
OcclusionType = result != 0 ? NotOccluded : Occluded;
|
|
|
|
VisibleCount = (uint) result;
|
|
|
|
VisibleCount = (uint) result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
return OcclusionType;
|
|
|
|
return OcclusionType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|