ati_mda_bug var

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2719 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-20 21:40:21 +00:00
parent bd509d2e9e
commit 0c9af4991b
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -34,10 +34,12 @@ stripbatch stripbatches[256];
uchar renderedtex[256];
int renderedtexs = 0;
extern int ati_mda_bug;
#define RENDERSTRIPS(strips, type) \
if(strips.first.length()) \
{ \
if(hasMDA) glMultiDrawArrays_(type, strips.first.getbuf(), strips.count.getbuf(), strips.first.length()); \
if(hasMDA && !ati_mda_bug) glMultiDrawArrays_(type, strips.first.getbuf(), strips.count.getbuf(), strips.first.length()); \
else loopv(strips.first) glDrawArrays(type, strips.first[i], strips.count[i]); \
strips.first.setsizenodelete(0); \
strips.count.setsizenodelete(0); \