Fixed edit link line not rendering correctly in rooms without a skybox

This commit is contained in:
parax0 2016-03-07 21:23:58 -07:00
parent 57b7fbe7f6
commit c6a4190042
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ void CSceneViewport::Paint()
// Draw the line for the link the user is editing. This is a little hacky but I don't really have a better way to do this atm.
if (mLinkLineEnabled)
{
CGraphics::sMVPBlock.ModelMatrix = CMatrix4f::skIdentity;
CGraphics::UpdateMVPBlock();
glDepthRange(0.f, 1.f);
CDrawUtil::DrawLine(mLinkLinePoints[0], mLinkLinePoints[1], CColor::skYellow);
}