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,7 +572,9 @@ static void polymer_displayrooms(short dacursectnum)
while (front != back)
{
if ((front >= firstback) && (pr_occlusionculling) && (querydelay[sectorqueue[front]] > 0))
if ((front >= firstback) && (pr_occlusionculling))
{
if (querydelay[sectorqueue[front]] == 0)
{
bglGetQueryObjectivARB(queryid[sectorqueue[front]],
GL_QUERY_RESULT_ARB,
@ -588,8 +590,9 @@ static void polymer_displayrooms(short dacursectnum)
}
else if (querydelay[sectorqueue[front]] == -1)
querydelay[sectorqueue[front]] = pr_occlusionculling-1;
else if ((front >= firstback) && (pr_occlusionculling) && (querydelay[sectorqueue[front]]))
else if (querydelay[sectorqueue[front]])
querydelay[sectorqueue[front]]--;
}
polymer_pokesector(sectorqueue[front]);
polymer_drawsector(sectorqueue[front]);