Fixed DebugDrawer drawing black lines and points
Former-commit-id: 800ef6a53263bb18d8ca798e421c80309e8c9315
This commit is contained in:
parent
3e8ed9b1e4
commit
ca758f9682
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue