mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 12:36:17 +00:00
Fixed a bug where minMemorySize could cause a memory overwrite
This commit is contained in:
parent
32d1a31dfe
commit
9e7595b873
2
clay.h
2
clay.h
|
@ -3615,7 +3615,7 @@ uint32_t Clay_MinMemorySize(void) {
|
||||||
.maxMeasureTextCacheWordCount = Clay__defaultMaxMeasureTextWordCacheCount,
|
.maxMeasureTextCacheWordCount = Clay__defaultMaxMeasureTextWordCacheCount,
|
||||||
.internalArena = {
|
.internalArena = {
|
||||||
.capacity = SIZE_MAX,
|
.capacity = SIZE_MAX,
|
||||||
.memory = (char*)&fakeContext,
|
.memory = NULL,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Clay_Context* currentContext = Clay_GetCurrentContext();
|
Clay_Context* currentContext = Clay_GetCurrentContext();
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue