mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-07 23:08:03 +00:00
[Core] Make fakeContext use correct value from currentContext (#269)
This commit is contained in:
parent
a60b977946
commit
5afdf3f8c9
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