docs: Improve some comment text.
MODIFY
src/tileLayer.js
src/tileLayer.js
@@ -1672,9 +1672,9 @@ var tileLayer = function (arg) {
/**
* Get/set the baseQuad.
*
- * @property {object} [baseQuad] A quad feature element to draw before below
- * any tile layers. If specified, this uses the quad defaults, so this is
- * a ``geo.quadFeature.position`` object with, typically, an ``image``
+ * @property {object} [baseQuad] A quad feature element to draw below any
+ * tile layers. If specified, this uses the quad defaults, so this is a
+ * ``geo.quadFeature.position`` object with, typically, an ``image``
* property added to it. The quad positions are in the map gcs
* coordinates.
* @name geo.tileLayer.baseQuad

MODIFY
src/webgl/webglRenderer.js
src/webgl/webglRenderer.js
@@ -184,11 +184,12 @@ var webglRenderer = function (arg) {
renderState.m_renderer = m_viewer;
renderState.m_context = m_this._glContext();
m_viewer.exit(renderState);
- if (m_this._glContext() !== vgl.GL && m_this._glContext().getExtension('WEBGL_lose_context') && m_this._glContext().getExtension('WEBGL_lose_context').loseContext) {
- m_this._glContext().getExtension('WEBGL_lose_context').loseContext();
+ const context = m_this._glContext();
+ if (context !== vgl.GL && context.getExtension('WEBGL_lose_context') && context.getExtension('WEBGL_lose_context').loseContext) {
+ context.getExtension('WEBGL_lose_context').loseContext();
}
}
- // make sure we clear shaders associated with the generate context, too
+ // make sure we clear shaders associated with the generated context, too
vgl.clearCachedShaders(vgl.GL);
m_viewer = null;
s_exit();

docs: Improve some comment text.