ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: 529634df266d4ab495a326863d6cfea80e6d8f21
Parent: af12ff47508553f07ce7c1f9785892c5248e99ad
Author: Randy Palamar
Date:   Thu, 15 Aug 2024 10:52:49 -0600

shut up intel about unmapping a non-existant buffer

Diffstat:
Mbeamformer.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/beamformer.c b/beamformer.c @@ -51,7 +51,8 @@ alloc_shader_storage(BeamformerCtx *ctx, Arena a) switch (ctx->gl_vendor_id) { case GL_VENDOR_INTEL: case GL_VENDOR_AMD: - glUnmapNamedBuffer(cs->raw_data_ssbo); + if (cs->raw_data_ssbo) + glUnmapNamedBuffer(cs->raw_data_ssbo); storage_flags |= GL_MAP_WRITE_BIT|GL_MAP_PERSISTENT_BIT; case GL_VENDOR_NVIDIA: break;