Request GL BSP instead of requiring automap texturing to be on

This commit is contained in:
Magnus Norddahl 2016-11-09 12:07:07 +01:00
parent dc0e6d40a4
commit 9820a6cb88
3 changed files with 7 additions and 1 deletions

View file

@ -68,7 +68,7 @@ CUSTOM_CVAR(Bool, r_newrenderer, 0, CVAR_NOINITCALL)
{
if (self == 1 && !hasglnodes)
{
Printf("No GL BSP detected. You must enable automap texturing and then restart the map\n");
Printf("No GL BSP detected. You must restart the map before rendering will be correct\n");
}
}

View file

@ -258,6 +258,11 @@ int FSoftwareRenderer::GetMaxViewPitch(bool down)
return (r_newrenderer) ? int(maxviewpitch) : (down ? MAX_DN_ANGLE : MAX_UP_ANGLE);
}
bool FSoftwareRenderer::RequireGLNodes()
{
return r_newrenderer;
}
//==========================================================================
//
// OnModeSet

View file

@ -28,6 +28,7 @@ struct FSoftwareRenderer : public FRenderer
virtual void DrawRemainingPlayerSprites() override;
virtual int GetMaxViewPitch(bool down) override;
bool RequireGLNodes() override;
void OnModeSet () override;
void ErrorCleanup () override;