How can I access pixel data in a PBO with this method :
IntPtr ptr = GL.MapBuffer(BufferTarget.PixelUnpackBuffer, BufferAccess.ReadWrite);
How can I convert from a IntPtr to a byte ? I can allocate memory pointed to by IntPtr with Marshal.AllocHGlobal
and copy data to it with Marshal.Copy, but I loose the advantage of the PBO.