Fixed rare bug when initializing debug drawer
Former-commit-id: 287d10c05a481a139449068014780aa7119096bb
This commit is contained in:
parent
34af3c9bc9
commit
f154dbfb31
|
|
@ -661,7 +661,7 @@ bool NzDebugDrawer::Initialize()
|
||||||
// s_vertexBuffer
|
// s_vertexBuffer
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
NzErrorFlags flags(nzErrorFlag_ThrowException);
|
NzErrorFlags flags(nzErrorFlag_ThrowException, true);
|
||||||
s_vertexBuffer.Reset(NzVertexDeclaration::Get(nzVertexLayout_XYZ), 65365, nzBufferStorage_Hardware, nzBufferUsage_Dynamic);
|
s_vertexBuffer.Reset(NzVertexDeclaration::Get(nzVertexLayout_XYZ), 65365, nzBufferStorage_Hardware, nzBufferUsage_Dynamic);
|
||||||
}
|
}
|
||||||
catch (const std::exception& e)
|
catch (const std::exception& e)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue