2
0
Эх сурвалжийг харах

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

This will allow the compiler to devirtualize these calls
rdb 3 жил өмнө
parent
commit
4d2a13537a

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