From: Mikko Rasa Date: Thu, 1 Apr 2021 19:31:35 +0000 (+0300) Subject: Fix extension declarations in GLSL output X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6c5380021ff5c42f750e75c0880882b77476b8c4;p=libs%2Fgl.git Fix extension declarations in GLSL output --- diff --git a/source/glsl/output.cpp b/source/glsl/output.cpp index 928b4250..b86cdd0a 100644 --- a/source/glsl/output.cpp +++ b/source/glsl/output.cpp @@ -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);