Improve NextPowerOfTwo(). Also make it consistent with IsPowerOfTwo() to treat 0 as if it is power of 2 (although mathematically it is not). NextPowerOfTwo(0) now returns 0. In the old version when value is larger than 0x80000000 then the function returned 0x80000000 which is not exactly correct because it is not the "next" number. In the new version the function returns 0 in this case because the next number has overflow the unsigned data type.
Improve NextPowerOfTwo().
Also make it consistent with IsPowerOfTwo() to treat 0 as if it is power of 2 (although mathematically it is not). NextPowerOfTwo(0) now returns 0.
In the old version when value is larger than 0x80000000 then the function returned 0x80000000 which is not exactly correct because it is not the "next" number. In the new version the function returns 0 in this case because the next number has overflow the unsigned data type.

299299/Urho3D,helingping/Urho3D,MeshGeometry/Urho3D,SirNate0/Urho3D,luveti/Urho3D,helingping/Urho3D,carnalis/Urho3D,weitjong/Urho3D,xiliu98/Urho3D,299299/Urho3D,codedash64/Urho3D,SuperWangKai/Urho3D,MeshGeometry/Urho3D,cosmy1/Urho3D,codedash64/Urho3D,orefkov/Urho3D,xiliu98/Urho3D,PredatorMF/Urho3D,bacsmar/Urho3D,fire/Urho3D-1,299299/Urho3D,victorholt/Urho3D,SirNate0/Urho3D,kostik1337/Urho3D,victorholt/Urho3D,urho3d/Urho3D,c4augustus/Urho3D,abdllhbyrktr/Urho3D,fire/Urho3D-1,cosmy1/Urho3D,SirNate0/Urho3D,bacsmar/Urho3D,iainmerrick/Urho3D,abdllhbyrktr/Urho3D,eugeneko/Urho3D,weitjong/Urho3D,iainmerrick/Urho3D,cosmy1/Urho3D,MeshGeometry/Urho3D,codemon66/Urho3D,weitjong/Urho3D,c4augustus/Urho3D,helingping/Urho3D,PredatorMF/Urho3D,abdllhbyrktr/Urho3D,SuperWangKai/Urho3D,fire/Urho3D-1,orefkov/Urho3D,eugeneko/Urho3D,rokups/Urho3D,codedash64/Urho3D,henu/Urho3D,tommy3/Urho3D,iainmerrick/Urho3D,cosmy1/Urho3D,MonkeyFirst/Urho3D,carnalis/Urho3D,kostik1337/Urho3D,MeshGeometry/Urho3D,henu/Urho3D,luveti/Urho3D,299299/Urho3D,codemon66/Urho3D,carnalis/Urho3D,xiliu98/Urho3D,299299/Urho3D,tommy3/Urho3D,c4augustus/Urho3D,xiliu98/Urho3D,urho3d/Urho3D,eugeneko/Urho3D,henu/Urho3D,MonkeyFirst/Urho3D,orefkov/Urho3D,eugeneko/Urho3D,299299/Urho3D,fire/Urho3D-1,SuperWangKai/Urho3D,abdllhbyrktr/Urho3D,kostik1337/Urho3D,rokups/Urho3D,codemon66/Urho3D,SuperWangKai/Urho3D,victorholt/Urho3D,PredatorMF/Urho3D,codemon66/Urho3D,fire/Urho3D-1,carnalis/Urho3D,luveti/Urho3D,helingping/Urho3D,SuperWangKai/Urho3D,iainmerrick/Urho3D,weitjong/Urho3D,xiliu98/Urho3D,victorholt/Urho3D,bacsmar/Urho3D,rokups/Urho3D,codedash64/Urho3D,MeshGeometry/Urho3D,rokups/Urho3D,PredatorMF/Urho3D,MonkeyFirst/Urho3D,kostik1337/Urho3D,orefkov/Urho3D,tommy3/Urho3D,luveti/Urho3D,rokups/Urho3D,MonkeyFirst/Urho3D,weitjong/Urho3D,victorholt/Urho3D,henu/Urho3D,bacsmar/Urho3D,urho3d/Urho3D,helingping/Urho3D,codedash64/Urho3D,SirNate0/Urho3D,carnalis/Urho3D,SirNate0/Urho3D,cosmy1/Urho3D,luveti/Urho3D,tommy3/Urho3D,iainmerrick/Urho3D,abdllhbyrktr/Urho3D,c4augustus/Urho3D,codemon66/Urho3D,henu/Urho3D,kostik1337/Urho3D,MonkeyFirst/Urho3D,urho3d/Urho3D,rokups/Urho3D,tommy3/Urho3D,c4augustus/Urho3D