Wrap ol.webgl code in define condition
This commit is contained in:
+20
-16
@@ -5,21 +5,25 @@ goog.require('ol.webgl');
|
||||
goog.require('ol.webgl.Shader');
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.webgl.Shader}
|
||||
* @param {string} source Source.
|
||||
* @struct
|
||||
*/
|
||||
ol.webgl.Vertex = function(source) {
|
||||
ol.webgl.Shader.call(this, source);
|
||||
};
|
||||
ol.inherits(ol.webgl.Vertex, ol.webgl.Shader);
|
||||
if (ol.ENABLE_WEBGL) {
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.webgl.Shader}
|
||||
* @param {string} source Source.
|
||||
* @struct
|
||||
*/
|
||||
ol.webgl.Vertex = function(source) {
|
||||
ol.webgl.Shader.call(this, source);
|
||||
};
|
||||
ol.inherits(ol.webgl.Vertex, ol.webgl.Shader);
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.webgl.Vertex.prototype.getType = function() {
|
||||
return ol.webgl.VERTEX_SHADER;
|
||||
};
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.webgl.Vertex.prototype.getType = function() {
|
||||
return ol.webgl.VERTEX_SHADER;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user