]> git.mxchange.org Git - flightgear.git/commit
Andy Ross:
authorcurt <curt>
Sun, 1 Dec 2002 22:38:38 +0000 (22:38 +0000)
committercurt <curt>
Sun, 1 Dec 2002 22:38:38 +0000 (22:38 +0000)
commit64028a37ef716a24c1110f3ab82fd177098f862d
treec650a618eb9268b0f381f129d8e11401b7da7957
parentd98b7f05ff6ee78d7439eeec6b060f870b6d8798
Andy Ross:

I wrote:
 > I can confirm this.  Layers on the 2D panels (but oddly, only the 2D
 > panels) aren't drawing over the background with the current ATI
 > drivers.

OK, this turns out to be a trivial fix, although I still think it's a
driver bug.  There are two calls to glPolygonOffset in the panel
rendering code (shared by both 2D and 3D panels).  One is called
per-layer, and sets up a layer-specific offset.  The other is called
for drawing the background textures, to lift them off of any
underlying cockpit geometry.

I was using different "factor" values for each, incorrectly.  Patch
attached.  It was affecting only 2D panels because the 3D ones don't
use background images.

Problem is, by my reading of the specification the bug should have had
the effect of pushing the background texture *farther* behind the
instruments, instead of pulling it on top of them.  Either I'm reading
the spec incorrectly or ATI has inverted the sense of the factor
argument.  Dunno, I'll submit a bug report to them and see what
happens.
src/Cockpit/panel.cxx