GL state - wireframe vs sky vs fakeradio shadow edges
I noticed a slightly odd GL state management issue with the current Beta6 branch (as of #53cbd8944bd470495f95c619d78d81f60eb15b06).
In the starting area of DOOM.wad::E1M1, turn on rend-fakeradio and rend-dev-wireframe
When in wireframe mode, the shadow edges polies are supposed to be drawn as regular (i.e., not shadow) geometry.
Notice what happens when you move the view so that the sky is/is not visible. For some reason they are only drawn as expected when the sky is visible.
This suggests there may be a problem elsewhere.
#1 Updated by danij over 12 years ago
It would appear this issue is due to drawing geometry with the current GL color left uninitialized. Although I'm not yet sure where this is happening, I just know that if the currently bound texture and color are set at the end of Rend_RenderSkyHemisphere this issue disappears:
glColor4f(1, 1, 1, 1);