use a zero-size initially for GeometryDebugRenderer
This commit is contained in:
parent
55f697ae6c
commit
d3bff35dd8
|
@ -4,8 +4,6 @@ namespace Blarg.GameFramework.Graphics
|
|||
{
|
||||
public class GeometryDebugRenderer
|
||||
{
|
||||
const int DefaultVerticesAmount = 4096;
|
||||
|
||||
VertexBuffer _vertices;
|
||||
RenderState _renderState;
|
||||
Color _color1;
|
||||
|
@ -21,7 +19,7 @@ namespace Blarg.GameFramework.Graphics
|
|||
|
||||
GraphicsDevice = graphicsDevice;
|
||||
|
||||
_vertices = new VertexBuffer(GraphicsDevice, VertexAttributeDeclarations.ColorPosition3D, DefaultVerticesAmount, BufferObjectUsage.Stream);
|
||||
_vertices = new VertexBuffer(GraphicsDevice, VertexAttributeDeclarations.ColorPosition3D, 0, BufferObjectUsage.Stream);
|
||||
|
||||
_color1 = new Color(1.0f, 1.0f, 0.0f);
|
||||
_color2 = new Color(1.0f, 0.0f, 0.0f);
|
||||
|
|
Reference in a new issue