Bug #885
GL state - wireframe vs sky vs fakeradio shadow edges
100%
Description
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.
Labels: Graphics
History
#1 Updated by danij over 14 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:
glBindTexture(GL_TEXTURE_2D, 0);
glColor4f(1, 1, 1, 1);
#2 Updated by danij about 14 years ago
Fixed in branch ringzero+master for 1.9.7