fix an annoying bug in mapview that made some layers not show up at all due to interference from blending logic in gpu

This commit is contained in:
zeromus 2009-09-20 20:20:18 +00:00
parent cb1d7d2f23
commit 8c6e56e679
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,10 @@ struct mapview_struct
gpu.currBgNum = map;
gpu.debug = true;
int temp = gpu.setFinalColorBck_funcNum;
gpu.setFinalColorBck_funcNum = 0; //hax... why arent we copying gpu now?? i cant remember
memset(bitmap,0,sizeof(bitmap));
for(u32 i = 0; i < gpu.BGSize[map][1]; ++i)
{
@ -62,6 +66,7 @@ struct mapview_struct
gpu.modeRender<false>(map);
}
gpu.debug = false;
gpu.setFinalColorBck_funcNum = temp;
}
};