summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-01-21 15:44:56 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-01-21 15:44:56 +0100
commit50f99e414ed02e6ab0edb9425b8c1074623b4719 (patch)
tree97dfff7c3839ee706d8e853fe5f80f7947b5c74c /bin
parent209dd913f9518388b93bb1900717f3c97bd54451 (diff)
downloadqtlocation-mapboxgl-50f99e414ed02e6ab0edb9425b8c1074623b4719.tar.gz
define as extern
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-shaders.js4
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';