Skip to content

Commit

Permalink
Fix implementation of StorageAllocationFlags.Mappable
Browse files Browse the repository at this point in the history
  • Loading branch information
deccer committed Jul 18, 2023
1 parent e7ef7b5 commit 3855be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EngineKit/Extensions/ToGLExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3855be0

Please sign in to comment.