mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-21 16:58:45 +00:00
some more minor optimizations introduced by aavindraa, i only corrected evaluation order using some ().
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5883 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c2ee89b170
commit
665d83ed45
5 changed files with 6 additions and 13 deletions
|
@ -293,7 +293,7 @@ void IndexGenerator::AddLineList(int numVerts)
|
|||
*Lptr++ = index+i*2;
|
||||
*Lptr++ = index+i*2+1;
|
||||
}
|
||||
if(numVerts%2 != 0)
|
||||
if((numVerts & 1) != 0)
|
||||
{
|
||||
//use line strip for remaining vert
|
||||
*Lptr++ = index + numLines * 2 - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue