fix subtle bug in LegacyAtlasAlloc::Allocate exposed by Intel GMA

atlas could grow LARGER than its maximum size in x-dimension due to TEXMARGIN not being considered
3DO texture atlas has a maximum size of 2048 pixels but grew to 2050 pixels in at least one *A game
on Intel hardware with maxTextureSize=2048 this caused driver memory corruption --> random crashes