]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix extension declarations in GLSL output
authorMikko Rasa <tdb@tdb.fi>
Thu, 1 Apr 2021 19:31:35 +0000 (22:31 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 1 Apr 2021 19:31:35 +0000 (22:31 +0300)
source/glsl/output.cpp

index 928b42508792ce47398e2955b050d5cdd2f5b37c..b86cdd0a0ad4f75082d49146c05ae892e5684b16 100644 (file)
@@ -33,15 +33,15 @@ const string &Formatter::apply(Stage &s)
        }
 
        if(s.required_features.arb_explicit_attrib_location)
-               append("#extension arb_explicit_attrib_location: require\n");
+               append("#extension GL_ARB_explicit_attrib_location: require\n");
        if(s.required_features.arb_gpu_shader5)
-               append("#extension arb_gpu_shader5: require\n");
+               append("#extension GL_ARB_gpu_shader5: require\n");
        if(s.required_features.arb_uniform_buffer_object)
-               append("#extension arb_uniform_buffer_object: require\n");
+               append("#extension GL_ARB_uniform_buffer_object: require\n");
        if(s.required_features.ext_gpu_shader4)
-               append("#extension ext_gpu_shader4: require\n");
+               append("#extension GL_EXT_gpu_shader4: require\n");
        if(s.required_features.ext_texture_array)
-               append("#extension ext_texture_array: require\n");
+               append("#extension GL_EXT_texture_array: require\n");
        formatted += '\n';
 
        s.content.visit(*this);