renderer: --shadow variable compiler warning

This commit is contained in:
Hermet Park 2024-10-24 21:25:03 +09:00 committed by Hermet Park
parent 0815366763
commit bace4e3e9e

View file

@ -122,16 +122,16 @@ namespace tvg
return tr.m; return tr.m;
} }
void clip(Paint* clipper) void clip(Paint* clp)
{ {
if (this->clipper) { if (this->clipper) {
P(this->clipper)->unref(); P(this->clipper)->unref();
if (this->clipper != clipper && P(this->clipper)->refCnt == 0) { if (this->clipper != clp && P(this->clipper)->refCnt == 0) {
delete(this->clipper); delete(this->clipper);
} }
} }
this->clipper = clipper; this->clipper = clp;
if (!clipper) return; if (!clp) return;
P(clipper)->ref(); P(clipper)->ref();
} }