]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Implement OpenGL version checking, use it for occlusion queries
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 3 Oct 2023 02:36:16 +0000 (12:36 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 28 Oct 2023 08:20:50 +0000 (18:20 +1000)
commite6815ebce187ac7ddcddcdddc5a939df7c778c07
treebcd30c8ab6a17d68f11d70f5b123e82086429b6d
parente94ffb4f1022d3d0cdb952669e80c678b8aee3e7
Implement OpenGL version checking, use it for occlusion queries

This allows DP to use core features added after 3.2 without crashing,
in this case query buffer objects.

In div0-stable GL_ARB_query_buffer_object was checked but that extension
was written against 4.3 and became part of core in 4.4 so we can just
check for 4.4.

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/176

Moves GL function pointer initialisation to its own function to support
a workaround for NVIDIA's opinion about GL profiles.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
glquake.h
r_shadow.c
vid.h
vid_sdl.c
vid_shared.c