add gl_wireframe and gl_wireframecolor

This commit is contained in:
Ricardo Luís Vaz Silva 2025-01-09 09:25:52 -03:00 committed by Magnus Norddahl
commit c72bad053f
14 changed files with 151 additions and 64 deletions

View file

@ -1215,6 +1215,8 @@ void HWDrawInfo::DrawScene(int drawmode, FRenderState& state)
state.SetDepthMask(true);
if (!gl_no_skyclear && !gl_levelmesh) drawctx->portalState.RenderFirstSkyPortal(recursion, this, state);
state.SetWireframe(gl_wireframe, gl_wireframecolor.get()->asFV4());
RenderScene(state);
screen->UpdateLinearDepthTexture();
@ -1237,6 +1239,9 @@ void HWDrawInfo::DrawScene(int drawmode, FRenderState& state)
{
state.SetFogballIndex(-1);
}
state.SetWireframe(0, {});
}
//-----------------------------------------------------------------------------