summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-03-26 11:51:15 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-03-26 11:51:15 +0100
commit4b6b5b3b22bace1d6769fa7851c89139f029e68a (patch)
tree79c531a91cc32eeabcfd0bef969d62f0447d3361 /bin
parent249b42a29dd6c93eaadd321ae1f6d95cd7b4382e (diff)
downloadqtlocation-mapboxgl-4b6b5b3b22bace1d6769fa7851c89139f029e68a.tar.gz
fail hard if the shader optimizer is unavailable
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-shaders.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/build-shaders.js b/bin/build-shaders.js
index 145df88064..dd8eaad8c2 100755
--- a/bin/build-shaders.js
+++ b/bin/build-shaders.js
@@ -3,9 +3,7 @@
var fs = require('fs');
var path = require('path');
-
-var glsl;
-try { glsl = require('glsl-optimizer'); } catch(err) {}
+var glsl = require('glsl-optimizer');
module.exports = function(param) {
var name;