From e0fe72ebb096246a7046b67cdbd2a16432ce7ed1 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Tue, 16 Feb 2010 08:48:21 +0000 Subject: [PATCH] small change to display list --- DebugUtils/Include/DebugDraw.h | 2 +- DebugUtils/Source/DebugDraw.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/DebugUtils/Include/DebugDraw.h b/DebugUtils/Include/DebugDraw.h index 0372941..1064e41 100644 --- a/DebugUtils/Include/DebugDraw.h +++ b/DebugUtils/Include/DebugDraw.h @@ -147,7 +147,7 @@ public: virtual void begin(duDebugDrawPrimitives prim, float size = 1.0f); virtual void vertex(const float x, const float y, const float z, unsigned int color); virtual void vertex(const float* pos, unsigned int color); - virtual void end() {} + virtual void end(); void clear(); void draw(struct duDebugDraw* dd); }; diff --git a/DebugUtils/Source/DebugDraw.cpp b/DebugUtils/Source/DebugDraw.cpp index 6cdf897..af3e01f 100644 --- a/DebugUtils/Source/DebugDraw.cpp +++ b/DebugUtils/Source/DebugDraw.cpp @@ -460,6 +460,10 @@ void duDisplayList::vertex(const float* pos, unsigned int color) vertex(pos[0],pos[1],pos[2],color); } +void duDisplayList::end() +{ +} + void duDisplayList::draw(struct duDebugDraw* dd) { if (!m_size)