Skip to content

Commit

Permalink
Merge pull request #2409 from rdb/patch-1
Browse files Browse the repository at this point in the history
glsl: Correct version number check for texture buffers
  • Loading branch information
HansKristian-Work authored Nov 13, 2024
2 parents 6cbb943 + f822e84 commit be7c1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spirv_glsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit be7c1a3

Please sign in to comment.