ogl_beamforming

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

Commit: 8bec074e3e810826c396020a3b6e90985684f38a
Parent: ea902c8b427d0aa23fa510a7cc6e4c8466c8df38
Author: Randy Palamar
Date:   Thu, 10 Oct 2024 10:44:45 -0600

fix gl version check for nVidia drivers

Diffstat:
Mstatic.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/static.c b/static.c @@ -86,7 +86,11 @@ static void validate_gl_requirements(GLParams *gl) { ASSERT(gl->max_ubo_size >= sizeof(BeamformerParameters)); - if (gl->version_major < 4 || (gl->version_major == 4 && gl->version_minor < 5)) { + /* NOTE: nVidia's driver seems to misreport the version */ + if (gl->version_major < 4 || + (gl->version_major == 4 && gl->version_minor < 3 && gl->vendor_id == GL_VENDOR_NVIDIA) || + (gl->version_major == 4 && gl->version_minor < 5)) + { os_write_err_msg(s8("Only OpenGL Versions 4.5 or newer are supported!\n")); os_fail(); }