From 050ef046c84d8bb9d1a44729ccd727235fb88521 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 12 Sep 2008 00:46:15 +0000 Subject: [PATCH] display list fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2533 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/vertmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/vertmodel.h b/source/src/vertmodel.h index 367dd2dc..27174166 100644 --- a/source/src/vertmodel.h +++ b/source/src/vertmodel.h @@ -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];