Skip to content

Commit

Permalink
#5912: Fix a bug in RenderableWinding, causing too many re-allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Mar 6, 2022
1 parent 4f37ccf commit 7713730
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radiantcore/brush/RenderableWinding.h
Expand Up @@ -73,10 +73,11 @@ class RenderableWinding :

_shader = shader;
_windingSize = numPoints;
_entity = &entity; // remember this renderentity, to detect colour changes

if (_slot == IWindingRenderer::InvalidSlot)
{
_slot = shader->addWinding(vertices, &entity);
_slot = shader->addWinding(vertices, _entity);
}
else
{
Expand Down

0 comments on commit 7713730

Please sign in to comment.