mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-04 23:11:32 +00:00
fix 6
This commit is contained in:
parent
5f78f6c723
commit
cfb194f1d1
1 changed files with 5 additions and 0 deletions
|
@ -140,6 +140,11 @@ void OcclusionQuery::notifyRenderSingleObject(Renderable* rend, const Pass* pass
|
||||||
|
|
||||||
void OcclusionQuery::renderQueueEnded(uint8 queueGroupId, const String& invocation, bool& repeatThisInvocation)
|
void OcclusionQuery::renderQueueEnded(uint8 queueGroupId, const String& invocation, bool& repeatThisInvocation)
|
||||||
{
|
{
|
||||||
|
if (mActiveQuery != NULL)
|
||||||
|
{
|
||||||
|
mActiveQuery->endOcclusionQuery();
|
||||||
|
mActiveQuery = NULL;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* for every beginOcclusionQuery(), we want a respective pullOcclusionQuery() and vice versa
|
* for every beginOcclusionQuery(), we want a respective pullOcclusionQuery() and vice versa
|
||||||
* this also means that results can be wrong at other places if we pull, but beginOcclusionQuery() was never called
|
* this also means that results can be wrong at other places if we pull, but beginOcclusionQuery() was never called
|
||||||
|
|
Loading…
Reference in a new issue