mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
renderer: --shadow variable compiler warning
This commit is contained in:
parent
0815366763
commit
bace4e3e9e
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue