Skip to content

Commit

Permalink
[GL] Fix ComputeCommand.SetBufferCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Dec 12, 2023
1 parent ae9414b commit f81cac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Aardvark.Rendering.GL/Runtime/Compute.fs
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,14 @@ module internal ComputeTaskInternals =
if GL.ARB_direct_state_access then
s.ClearNamedBufferSubData(
buffer.Handle, PixelInternalFormat.R32ui,
range.Offset, range.SizeInBytes, PixelFormat.Red, PixelType.UnsignedInt,
range.Offset, range.SizeInBytes, PixelFormat.RedInteger, PixelType.UnsignedInt,
pValue
)
else
s.BindBuffer(BufferTarget.CopyWriteBuffer, buffer.Handle)
s.ClearBufferSubData(
BufferTarget.CopyWriteBuffer, PixelInternalFormat.R32ui,
range.Offset, range.SizeInBytes, PixelFormat.Red, PixelType.UnsignedInt,
range.Offset, range.SizeInBytes, PixelFormat.RedInteger, PixelType.UnsignedInt,
pValue
)
)
Expand Down

0 comments on commit f81cac2

Please sign in to comment.