Skip to content

Commit 904ed1d

Browse files
committed
[Vulkan] Remove warning when allocating external memory fails
1 parent 741101c commit 904ed1d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Aardvark.Rendering.Vulkan/Core/Memory/MemoryAllocator.fs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ type internal MemoryAllocator (device: IDevice) =
120120

121121
match tryCreateBuffer pBufferCreateInfo &&allocationCreateInfo hostVisible alignment true with
122122
| Result.Ok result -> result
123-
| Result.Error error ->
124-
Log.Vulkan.warn $"could not allocate memory for buffer (Error: {error})"
123+
| Result.Error _ ->
125124
&allocationCreateInfo.memoryTypeBits &&&= ~~~(1u <<< int32 memoryTypeIndex)
126125
createExternalBuffer pBufferCreateInfo &allocationCreateInfo hostVisible alignment
127126

@@ -135,8 +134,7 @@ type internal MemoryAllocator (device: IDevice) =
135134

136135
match tryCreateImage pImageCreateInfo &&allocationCreateInfo hostVisible true with
137136
| Result.Ok result -> result
138-
| Result.Error error ->
139-
Log.Vulkan.warn $"could not allocate memory for image (Error: {error})"
137+
| Result.Error _ ->
140138
&allocationCreateInfo.memoryTypeBits &&&= ~~~(1u <<< int32 memoryTypeIndex)
141139
createExternalImage pImageCreateInfo &allocationCreateInfo hostVisible
142140

0 commit comments

Comments
 (0)