mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
fix 5
This commit is contained in:
parent
c9067249dd
commit
b018d00fd3
@ -126,7 +126,7 @@ void OcclusionQuery::notifyRenderSingleObject(Renderable* rend, const Pass* pass
|
|||||||
mActiveQuery = mSunVisibleAreaQuery;
|
mActiveQuery = mSunVisibleAreaQuery;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mDoQuery2 == true && rend == mBBQuerySingleObject)
|
if (mDoQuery == true && rend == mBBQuerySingleObject)
|
||||||
{
|
{
|
||||||
mQuerySingleObjectStarted = true;
|
mQuerySingleObjectStarted = true;
|
||||||
mQuerySingleObjectRequested = false;
|
mQuerySingleObjectRequested = false;
|
||||||
@ -155,7 +155,7 @@ void OcclusionQuery::renderQueueEnded(uint8 queueGroupId, const String& invocati
|
|||||||
mSunVisibleAreaQuery->beginOcclusionQuery();
|
mSunVisibleAreaQuery->beginOcclusionQuery();
|
||||||
mSunVisibleAreaQuery->endOcclusionQuery();
|
mSunVisibleAreaQuery->endOcclusionQuery();
|
||||||
}
|
}
|
||||||
if (mObjectWasVisible == false && mDoQuery2)
|
if (mObjectWasVisible == false && mDoQuery)
|
||||||
{
|
{
|
||||||
mSingleObjectQuery->beginOcclusionQuery();
|
mSingleObjectQuery->beginOcclusionQuery();
|
||||||
mSingleObjectQuery->endOcclusionQuery();
|
mSingleObjectQuery->endOcclusionQuery();
|
||||||
@ -189,7 +189,8 @@ void OcclusionQuery::update(float duration)
|
|||||||
mDoQuery2 = false;
|
mDoQuery2 = false;
|
||||||
|
|
||||||
if (!mSunTotalAreaQuery->isStillOutstanding()
|
if (!mSunTotalAreaQuery->isStillOutstanding()
|
||||||
&& !mSunVisibleAreaQuery->isStillOutstanding())
|
&& !mSunVisibleAreaQuery->isStillOutstanding()
|
||||||
|
&& !mSingleObjectQuery->isStillOutstanding())
|
||||||
{
|
{
|
||||||
unsigned int totalPixels;
|
unsigned int totalPixels;
|
||||||
unsigned int visiblePixels;
|
unsigned int visiblePixels;
|
||||||
@ -208,10 +209,6 @@ void OcclusionQuery::update(float duration)
|
|||||||
if (mSunVisibility > 1) mSunVisibility = 1;
|
if (mSunVisibility > 1) mSunVisibility = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
mDoQuery = true;
|
|
||||||
}
|
|
||||||
if (!mSingleObjectQuery->isStillOutstanding())
|
|
||||||
{
|
|
||||||
unsigned int result;
|
unsigned int result;
|
||||||
|
|
||||||
mSingleObjectQuery->pullOcclusionQuery(&result);
|
mSingleObjectQuery->pullOcclusionQuery(&result);
|
||||||
@ -222,7 +219,7 @@ void OcclusionQuery::update(float duration)
|
|||||||
mQuerySingleObjectStarted = false;
|
mQuerySingleObjectStarted = false;
|
||||||
mQuerySingleObjectRequested = false;
|
mQuerySingleObjectRequested = false;
|
||||||
|
|
||||||
mDoQuery2 = true;
|
mDoQuery = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user