From f81cac26418985023ec471f338a105b79b51f447 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 12 Dec 2023 19:54:12 +0100 Subject: [PATCH] [GL] Fix ComputeCommand.SetBufferCmd --- src/Aardvark.Rendering.GL/Runtime/Compute.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Aardvark.Rendering.GL/Runtime/Compute.fs b/src/Aardvark.Rendering.GL/Runtime/Compute.fs index 902eaced..7025ab52 100644 --- a/src/Aardvark.Rendering.GL/Runtime/Compute.fs +++ b/src/Aardvark.Rendering.GL/Runtime/Compute.fs @@ -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 ) )