]> git.mxchange.org Git - flightgear.git/commit
Reduce POFF_UNITS from 40 to 4, following Andy Ross's suggestion (to
authordavid <david>
Sat, 16 Nov 2002 22:08:22 +0000 (22:08 +0000)
committerdavid <david>
Sat, 16 Nov 2002 22:08:22 +0000 (22:08 +0000)
commitde0f20aa228a5bb60bbfce8b5992a85126d2b4b8
tree3319b0564a0ae982e6ba78179fa1e77d1c32c9da
parent4d1e05804febd22173748b9e60d19576ee6639bf
Reduce POFF_UNITS from 40 to 4, following Andy Ross's suggestion (to
avoid having the 2D instruments obscure 3D objects in front of them):

It's related to depth buffer precision.  On my Geforce cards (2MX and
3), it never happens with the 24 bit depth buffer you get by default
at 32bpp.  At 16bpp, it picks a slimmer depth buffer (probably 16 bit)
and the texture layers bleed through.

The code is using a pretty big argument to glPolygonOffset, and I've
never investigated how small it can be.  If someone has a little time
the next time they see this issue, try changing the value of
POFF_UNITS at the top of Cockpit/panel.cxx.  Decrease it until the
textures *just* start to interfere with each other, and post the value
that works for you.
src/Cockpit/panel.cxx