Fixed debug line width not applied

Former-commit-id: 374173039602080e82e0e4ce0967caea90599155
This commit is contained in:
Lynix 2012-12-28 23:08:37 +01:00
parent 49f37e17ae
commit 15888b0f42
1 changed files with 5 additions and 0 deletions

View File

@ -137,12 +137,17 @@ void NzDebugDrawer::Draw(const NzCubef& cube)
if (depthTestActive != depthTest)
NzRenderer::Enable(nzRendererParameter_DepthTest, depthTest);
float oldLineWidth = NzRenderer::GetLineWidth();
NzRenderer::SetLineWidth(lineWidth);
NzRenderer::SetVertexBuffer(vertexBuffer);
shader->SendColor(colorLocation, primaryColor);
NzRenderer::DrawPrimitives(nzPrimitiveType_LineList, 0, 24);
NzRenderer::SetLineWidth(oldLineWidth);
if (depthTestActive != depthTest)
NzRenderer::Enable(nzRendererParameter_DepthTest, depthTestActive);