Browse Source

pgraph: Mark `RenderState::unref()` as final

This will allow the compiler to devirtualize these calls
rdb 3 years ago
parent
commit
4d2a13537a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgraph/renderState.h

+ 1 - 1
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;