Epic failures in the game development field.

This blog covers funny/weird issues and bugs from games that happened during development.

Send your own contributions to igetyourfail at repi.se (can be anonymous if specified)

Thursday, January 8, 2009

When non-renderers modify your renderer

Dan was wondering why none of his post-processing steps aligned anymore, might be related to this that someone had added:

// round up to nearest divisible by 8

m_sceneWidth += ((m_sceneWidth&0x7) ^ 0x7) + 1;

m_sceneHeight += ((m_sceneHeight&0x7) ^ 0x7) + 1;

(1600,1200) became (1608,1208)

(Thanks to Dan)

No comments: