Fixed DebugDrawer drawing black lines and points

Former-commit-id: 800ef6a53263bb18d8ca798e421c80309e8c9315
This commit is contained in:
Lynix
2013-06-18 02:30:01 +02:00
parent 3e8ed9b1e4
commit ca758f9682

View File

@@ -20,8 +20,8 @@
namespace
{
static NzColor primaryColor = NzColor::Red;
static NzColor secondaryColor = NzColor::Green;
static NzColor primaryColor;
static NzColor secondaryColor;
static NzRenderStates renderStates;
static const NzShader* shader = nullptr;
static NzVertexBuffer* vertexBuffer = nullptr;
@@ -564,6 +564,10 @@ bool NzDebugDrawer::Initialize()
}
}
primaryColor = NzColor::Red;
renderStates.parameters[nzRendererParameter_DepthBuffer] = true;
secondaryColor = NzColor::Green;
initialized = true;
}