display list fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2533 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-12 00:46:15 +00:00
parent b8686120bd
commit 050ef046c8
+1 -1
View File
@@ -177,7 +177,6 @@ struct vertmodel : model
}
else
{
if(isstat) glNewList(statlist = glGenLists(1), GL_COMPILE);
gendynverts(cur, prev, ai_t);
if(lastvertexarray != dynbuf)
{
@@ -191,6 +190,7 @@ struct vertmodel : model
glTexCoordPointer(2, GL_FLOAT, sizeof(tcvert), tcverts);
lasttexcoordarray = tcverts;
}
if(isstat) glNewList(statlist = glGenLists(1), GL_COMPILE);
loopi(numdyndraws)
{
const drawcall &d = dyndraws[i];