From f822e84980733e3f43d86332a3a6019b64eb34ff Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 9 Nov 2024 15:37:46 +0100 Subject: [PATCH] glsl: Correct version number check for texture buffers --- spirv_glsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index 1690c8e45..1a32bd310 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -15956,7 +15956,7 @@ string CompilerGLSL::image_type_glsl(const SPIRType &type, uint32_t id, bool /*m case DimBuffer: if (options.es && options.version < 320) require_extension_internal("GL_EXT_texture_buffer"); - else if (!options.es && options.version < 300) + else if (!options.es && options.version < 140) require_extension_internal("GL_EXT_texture_buffer_object"); res += "Buffer"; break;