- added DTA_LegacyRenderStyle so that STYLE_* constants can be passed directly to the Draw functions.

- fixed the optional parameter in Shape2D.Clear.
This commit is contained in:
Christoph Oelckers 2018-07-14 22:58:24 +02:00
commit 7a692b1557
4 changed files with 9 additions and 3 deletions

View file

@ -40,7 +40,7 @@ IMPLEMENT_CLASS(DShape2D, false, false)
DEFINE_ACTION_FUNCTION(DShape2D, Clear)
{
PARAM_SELF_PROLOGUE(DShape2D);
PARAM_INT(which);
PARAM_INT_DEF(which);
if ( which&C_Verts ) self->mVertices.Clear();
if ( which&C_Coords ) self->mCoords.Clear();
if ( which&C_Indices ) self->mIndices.Clear();