mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 04:24:28 +00:00
renderer: chores++
Some checks are pending
Android / build_x86_64 (push) Waiting to run
Android / build_aarch64 (push) Waiting to run
iOS / build_x86_64 (push) Waiting to run
iOS / build_arm64 (push) Waiting to run
macOS / build (push) Waiting to run
macOS / compact_test (push) Waiting to run
macOS / unit_test (push) Waiting to run
Ubuntu / build (push) Waiting to run
Ubuntu / compact_test (push) Waiting to run
Ubuntu / unit_test (push) Waiting to run
Windows / build (push) Waiting to run
Windows / compact_test (push) Waiting to run
Windows / unit_test (push) Waiting to run
Some checks are pending
Android / build_x86_64 (push) Waiting to run
Android / build_aarch64 (push) Waiting to run
iOS / build_x86_64 (push) Waiting to run
iOS / build_arm64 (push) Waiting to run
macOS / build (push) Waiting to run
macOS / compact_test (push) Waiting to run
macOS / unit_test (push) Waiting to run
Ubuntu / build (push) Waiting to run
Ubuntu / compact_test (push) Waiting to run
Ubuntu / unit_test (push) Waiting to run
Windows / build (push) Waiting to run
Windows / compact_test (push) Waiting to run
Windows / unit_test (push) Waiting to run
This commit is contained in:
parent
2e5af58592
commit
596f7f767f
1 changed files with 1 additions and 3 deletions
|
@ -107,9 +107,7 @@ namespace tvg
|
||||||
|
|
||||||
uint8_t ref()
|
uint8_t ref()
|
||||||
{
|
{
|
||||||
if (refCnt == UINT16_MAX) TVGERR("RENDERER", "Reference Count Overflow!");
|
return ++refCnt;
|
||||||
else ++refCnt;
|
|
||||||
return refCnt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t unref(bool free = true)
|
uint8_t unref(bool free = true)
|
||||||
|
|
Loading…
Add table
Reference in a new issue