From 31ab7514061b2408adabfa8ca5e39d625d4a513a Mon Sep 17 00:00:00 2001 From: slipher Date: Fri, 25 Jul 2025 09:49:03 -0500 Subject: [PATCH] Require UBO for material system Uniform buffer objects are required by the staging buffer. Obviously UBO is a very basic feature that we would have had anyway on a system supporting material system. --- src/engine/sys/sdl_glimp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/sys/sdl_glimp.cpp b/src/engine/sys/sdl_glimp.cpp index ec5c41cb3b..c612c8b297 100644 --- a/src/engine/sys/sdl_glimp.cpp +++ b/src/engine/sys/sdl_glimp.cpp @@ -2545,7 +2545,8 @@ static void GLimp_InitExtensions() && glConfig2.shaderDrawParametersAvailable && glConfig2.shaderImageLoadStoreAvailable && glConfig2.shadingLanguage420PackAvailable - && glConfig2.SSBOAvailable; + && glConfig2.SSBOAvailable + && glConfig2.uniformBufferObjectAvailable; // This requires GLEW 2.2+, so skip if it's a lower version #if defined(GLEW_KHR_shader_subgroup)