From 4d2a13537aa1645ac79ece5dbcd60aa8ad3c6c06 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 22 Oct 2022 16:53:18 +0200 Subject: [PATCH] pgraph: Mark `RenderState::unref()` as final This will allow the compiler to devirtualize these calls --- panda/src/pgraph/renderState.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraph/renderState.h b/panda/src/pgraph/renderState.h index 340eb5dac1..857493d7a1 100644 --- a/panda/src/pgraph/renderState.h +++ b/panda/src/pgraph/renderState.h @@ -112,7 +112,7 @@ PUBLISHED: INLINE CPT(RenderState) get_unique() const; - virtual bool unref() const; + virtual bool unref() const final; INLINE void cache_ref() const; INLINE bool cache_unref() const;