wined3d: Update clip planes when switching to/from offscreen rendering.
stefandoesinger at gmx.at
Mon Jan 31 10:44:33 CST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Am 31.01.2011 um 17:08 schrieb Matteo Bruni:
> The attached patch should follow your idea, does it look right? FWIW,
> I can't see any 1-pixel offset in The Sims 3 with this patch. Yes, I
> know that's not how it should be tested...
Looks OK on first sight. Does it work as well?
I can't think of any game where you could see a half pixel issue wrt clipplanes. Maybe the d3d7 clipping example can shows something, but I think to be sure you'd have to write a test.
The half pixel offset is mostly visible when games draw text by drawing textured quads, e.g. the menu and console in the source engine. Another odd occurrence is in Spore, where the game draws some heightmaps and reads them back. With incorrect half pixel offsets the in-game world is suddenly full of high walls. Then there's Warhammer Online which draws floor tiles in offscreen textures, leading to odd lines in the floor when they are not drawn properly.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
-----END PGP SIGNATURE-----
More information about the wine-devel