diff --git a/src/EngineKit/Extensions/ToGLExtensions.cs b/src/EngineKit/Extensions/ToGLExtensions.cs index ef4cbe5..beae1c1 100644 --- a/src/EngineKit/Extensions/ToGLExtensions.cs +++ b/src/EngineKit/Extensions/ToGLExtensions.cs @@ -50,7 +50,7 @@ public static uint ToGL(this StorageAllocationFlags storageAllocationFlags) result |= (storageAllocationFlags & StorageAllocationFlags.Dynamic) == StorageAllocationFlags.Dynamic ? (uint)GL.BufferStorageFlags.DynamicStorageBit : 0; result |= (storageAllocationFlags & StorageAllocationFlags.Client) == StorageAllocationFlags.Client ? (uint)GL.BufferStorageFlags.ClientStorageBit : 0; result |= (storageAllocationFlags & StorageAllocationFlags.Mappable) == StorageAllocationFlags.Mappable - ? (uint)(GL.MapFlags.Persistent | GL.MapFlags.Coherent) + ? (uint)(GL.MapFlags.Read | GL.MapFlags.Write | GL.MapFlags.Persistent | GL.MapFlags.Coherent) : 0; return result; }