mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Oops.
git-svn-id: https://svn.eduke32.com/eduke32@706 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
68393132c9
commit
9f14ec92bd
1 changed files with 16 additions and 13 deletions
|
@ -572,24 +572,27 @@ static void polymer_displayrooms(short dacursectnum)
|
||||||
|
|
||||||
while (front != back)
|
while (front != back)
|
||||||
{
|
{
|
||||||
if ((front >= firstback) && (pr_occlusionculling) && (querydelay[sectorqueue[front]] > 0))
|
if ((front >= firstback) && (pr_occlusionculling))
|
||||||
{
|
{
|
||||||
bglGetQueryObjectivARB(queryid[sectorqueue[front]],
|
if (querydelay[sectorqueue[front]] == 0)
|
||||||
GL_QUERY_RESULT_ARB,
|
|
||||||
&result);
|
|
||||||
bglDeleteQueriesARB(1, &queryid[sectorqueue[front]]);
|
|
||||||
if (!result)
|
|
||||||
{
|
{
|
||||||
front++;
|
bglGetQueryObjectivARB(queryid[sectorqueue[front]],
|
||||||
continue;
|
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;
|
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_pokesector(sectorqueue[front]);
|
||||||
polymer_drawsector(sectorqueue[front]);
|
polymer_drawsector(sectorqueue[front]);
|
||||||
|
|
Loading…
Reference in a new issue