Bug fixes to allocators and containers
Still haven't found the main bug with resizing zpl_hashmap on string interning
This commit is contained in:
@ -8,6 +8,8 @@ import "core:os"
|
||||
|
||||
import rl "vendor:raylib"
|
||||
|
||||
Str_App_State := "App State"
|
||||
|
||||
Memory_App : Memory
|
||||
|
||||
Memory_Base_Address_Persistent :: Terabyte * 1
|
||||
@ -40,6 +42,8 @@ Memory :: struct {
|
||||
transient : ^VArena,
|
||||
files_buffer : ^VArena,
|
||||
|
||||
state : ^State,
|
||||
|
||||
// Should only be used for small memory allocation iterations
|
||||
// Not for large memory env states
|
||||
snapshot : MemorySnapshot,
|
||||
@ -199,7 +203,8 @@ State :: struct {
|
||||
}
|
||||
|
||||
get_state :: proc "contextless" () -> ^ State {
|
||||
return cast( ^ State ) Memory_App.persistent.reserve_start
|
||||
// return cast( ^ State ) Memory_App.persistent.reserve_start
|
||||
return Memory_App.state
|
||||
}
|
||||
|
||||
AppWindow :: struct {
|
||||
|
Reference in New Issue
Block a user