git-svn-id: https://svn.eduke32.com/eduke32@706 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2008-04-13 00:29:13 +00:00
parent 68393132c9
commit 9f14ec92bd

View file

@ -572,24 +572,27 @@ static void polymer_displayrooms(short dacursectnum)
while (front != back)
{
if ((front >= firstback) && (pr_occlusionculling) && (querydelay[sectorqueue[front]] > 0))
if ((front >= firstback) && (pr_occlusionculling))
{
bglGetQueryObjectivARB(queryid[sectorqueue[front]],
GL_QUERY_RESULT_ARB,
&result);
bglDeleteQueriesARB(1, &queryid[sectorqueue[front]]);
if (!result)
if (querydelay[sectorqueue[front]] == 0)
{
front++;
continue;
bglGetQueryObjectivARB(queryid[sectorqueue[front]],
GL_QUERY_RESULT_ARB,
&result);
bglDeleteQueriesARB(1, &queryid[sectorqueue[front]]);
if (!result)
{
front++;
continue;
}
else
querydelay[sectorqueue[front]] = pr_occlusionculling-1;
}
else
else if (querydelay[sectorqueue[front]] == -1)
querydelay[sectorqueue[front]] = pr_occlusionculling-1;
else if (querydelay[sectorqueue[front]])
querydelay[sectorqueue[front]]--;
}
else if (querydelay[sectorqueue[front]] == -1)
querydelay[sectorqueue[front]] = pr_occlusionculling-1;
else if ((front >= firstback) && (pr_occlusionculling) && (querydelay[sectorqueue[front]]))
querydelay[sectorqueue[front]]--;
polymer_pokesector(sectorqueue[front]);
polymer_drawsector(sectorqueue[front]);