diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2024-08-06 09:21:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-06 16:21:19 +0300 |
commit | 75455d101c9535d0d45aa0f505f888f4ba3de64d (patch) | |
tree | 3fdef7aedddb1034d986eb5d017e048e4c5b950c /indra/llrender/llrender2dutils.h | |
parent | db376f2ace28b199749796520966b6e9884985d6 (diff) |
Convert LLUI and LLRender2D to LLSimpleton to reduce overhead during ui draw (#2202)
Diffstat (limited to 'indra/llrender/llrender2dutils.h')
-rw-r--r-- | indra/llrender/llrender2dutils.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llrender/llrender2dutils.h b/indra/llrender/llrender2dutils.h index 0d3efc38d6..096e7584f1 100644 --- a/indra/llrender/llrender2dutils.h +++ b/indra/llrender/llrender2dutils.h @@ -122,12 +122,13 @@ inline void gl_rect_2d_offset_local( const LLRect& rect, S32 pixel_offset, bool class LLImageProviderInterface; -class LLRender2D : public LLParamSingleton<LLRender2D> +class LLRender2D : public LLSimpleton<LLRender2D> { - LLSINGLETON(LLRender2D, LLImageProviderInterface* image_provider); LOG_CLASS(LLRender2D); - ~LLRender2D(); public: + LLRender2D(LLImageProviderInterface* image_provider); + ~LLRender2D(); + static void pushMatrix(); static void popMatrix(); static void loadIdentity(); |