Use the ol.DEBUG_WEBGL flag to debug shader sources

This commit is contained in:
Tim Schaub
2017-01-16 16:47:04 -07:00
parent 6f7eb53c38
commit fcb9dafc33
10 changed files with 161 additions and 74 deletions

View File

@@ -83,6 +83,14 @@ ol.ENABLE_RASTER_REPROJECTION = true;
ol.ENABLE_WEBGL = true;
/**
* @define {boolean} Include debuggable shader sources. Default is `true`.
* This should be set to `false` for production builds (if `ol.ENABLE_WEBGL`
* is `true`).
*/
ol.DEBUG_WEBGL = true;
/**
* @define {number} The size in pixels of the first atlas image. Default is
* `256`.