diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-01-21 15:44:56 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-01-21 15:44:56 +0100 |
commit | 50f99e414ed02e6ab0edb9425b8c1074623b4719 (patch) | |
tree | 97dfff7c3839ee706d8e853fe5f80f7947b5c74c /bin | |
parent | 209dd913f9518388b93bb1900717f3c97bd54451 (diff) | |
download | qtlocation-mapboxgl-50f99e414ed02e6ab0edb9425b8c1074623b4719.tar.gz |
define as extern
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-shaders.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build-shaders.js b/bin/build-shaders.js index 68b395d634..3578fe7e86 100755 --- a/bin/build-shaders.js +++ b/bin/build-shaders.js @@ -51,7 +51,7 @@ module.exports = function() { header += ' ' + consts.join(',\n ') + '\n'; header += '};\n'; header += '\n'; - header += 'const shader_source shaders[SHADER_COUNT];\n'; + header += 'extern const shader_source shaders[SHADER_COUNT];\n'; header += '\n'; header += '}\n'; header += '\n'; @@ -64,7 +64,7 @@ module.exports = function() { code += '\n'; code += 'using namespace llmr;\n'; code += '\n'; - code += 'const shader_source shaders[SHADER_COUNT] = {\n'; + code += 'const shader_source llmr::shaders[SHADER_COUNT] = {\n'; code += lines.join(',\n'); code += '\n};\n'; |