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
|
namespace
|
||||||
{
|
{
|
||||||
static NzColor primaryColor = NzColor::Red;
|
static NzColor primaryColor;
|
||||||
static NzColor secondaryColor = NzColor::Green;
|
static NzColor secondaryColor;
|
||||||
static NzRenderStates renderStates;
|
static NzRenderStates renderStates;
|
||||||
static const NzShader* shader = nullptr;
|
static const NzShader* shader = nullptr;
|
||||||
static NzVertexBuffer* vertexBuffer = 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;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue