mirror of
https://github.com/nicbarker/clay.git
synced 2025-05-14 22:38:03 +00:00
Merge 4f8898b302
into a60b977946
This commit is contained in:
commit
dd37edb6a8
2
clay.h
2
clay.h
@ -3589,7 +3589,7 @@ uint32_t Clay_MinMemorySize(void) {
|
|||||||
Clay_Context* currentContext = Clay_GetCurrentContext();
|
Clay_Context* currentContext = Clay_GetCurrentContext();
|
||||||
if (currentContext) {
|
if (currentContext) {
|
||||||
fakeContext.maxElementCount = currentContext->maxElementCount;
|
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
|
// Reserve space in the arena for the context, important for calculating min memory size correctly
|
||||||
Clay__Context_Allocate_Arena(&fakeContext.internalArena);
|
Clay__Context_Allocate_Arena(&fakeContext.internalArena);
|
||||||
|
Loading…
Reference in New Issue
Block a user