Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

1.3.1 Hotfix for collisions and stencil buffer #387

Closed totallyeviljake closed 10 years ago

totallyeviljake commented 10 years ago

This hot fix addresses an inversion in the collision detection code where the y component of the mask lookup was inverted.

Also if a stencil buffer is not requested in the graphics device setup then an invalid operation would occur upon the first draw. Now we check if the stencil buffer is requested and only clear it when it is available.