mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-15 10:48:04 +00:00
Make fakeContext use correct value from currentContext
This commit is contained in:
parent
ee99e5f0f2
commit
4f8898b302
2
clay.h
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user