option to turn off display lists explicitly for buggy drivers

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3756 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-11-25 18:49:34 +00:00
parent 10dbd44fc0
commit 388717f336
+3 -1
View File
@@ -10,6 +10,8 @@ vec shadowdir(0, 0, -1), shadowpos(0, 0, 0);
VAR(dbgstenc, 0, 0, 2);
VAR(dbgvlight, 0, 0, 1);
VAR(mdldlist, 0, 1, 1);
vec modelpos;
float modelyaw, modelpitch;
@@ -519,7 +521,7 @@ struct vertmodel : model
return;
}
bool builddlist = isstat && !owner->model->vertexlight;
bool builddlist = isstat && !owner->model->vertexlight && mdldlist;
if(builddlist) glNewList(statlist = glGenLists(1), GL_COMPILE);
loopi(numdyndraws)
{