From 5afdf3f8c9fe7ca739abc30c52eeb4cda34b0da5 Mon Sep 17 00:00:00 2001 From: Alex Pedley Date: Wed, 19 Feb 2025 20:21:14 +0000 Subject: [PATCH] [Core] Make fakeContext use correct value from currentContext (#269) --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index 65d2854..162ff92 100644 --- a/clay.h +++ b/clay.h @@ -3589,7 +3589,7 @@ uint32_t Clay_MinMemorySize(void) { Clay_Context* currentContext = Clay_GetCurrentContext(); if (currentContext) { fakeContext.maxElementCount = currentContext->maxElementCount; - fakeContext.maxMeasureTextCacheWordCount = currentContext->maxElementCount; + fakeContext.maxMeasureTextCacheWordCount = currentContext->maxMeasureTextCacheWordCount; } // Reserve space in the arena for the context, important for calculating min memory size correctly Clay__Context_Allocate_Arena(&fakeContext.internalArena);