GL: Occlusion query bugfix
This commit is contained in:
parent
59b1141d37
commit
f4d83149a7
1 changed files with 7 additions and 3 deletions
|
@ -2803,9 +2803,13 @@ IOcclusionQuery::TOcclusionType COcclusionQueryGL::getOcclusionType()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GLuint result;
|
GLuint result;
|
||||||
nglGetQueryObjectuivARB(ID, GL_QUERY_RESULT, &result);
|
nglGetQueryObjectuivARB(ID, GL_QUERY_RESULT_AVAILABLE, &result);
|
||||||
OcclusionType = result != 0 ? NotOccluded : Occluded;
|
if (result != GL_FALSE)
|
||||||
VisibleCount = (uint) result;
|
{
|
||||||
|
nglGetQueryObjectuivARB(ID, GL_QUERY_RESULT, &result);
|
||||||
|
OcclusionType = result != 0 ? NotOccluded : Occluded;
|
||||||
|
VisibleCount = (uint) result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue