mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
renderer: --shadow variable compiler warning
This commit is contained in:
parent
35bc063edd
commit
33cfc16569
1 changed files with 4 additions and 4 deletions
|
@ -122,16 +122,16 @@ namespace tvg
|
|||
return tr.m;
|
||||
}
|
||||
|
||||
void clip(Paint* clipper)
|
||||
void clip(Paint* clp)
|
||||
{
|
||||
if (this->clipper) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
this->clipper = clipper;
|
||||
if (!clipper) return;
|
||||
this->clipper = clp;
|
||||
if (!clp) return;
|
||||
|
||||
P(clipper)->ref();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue