Skip to content

Commit 045151b

Browse files
authored
Merge pull request #8534 from AnalyticalGraphicsInc/8105/EXT_float_blend
8105 - Explicitly enable EXT_float_blend to silence WebGL warnings
2 parents c85e762 + 9cc1120 commit 045151b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Change Log
2020

2121
##### Fixes :wrench:
2222
* Fixed a bug where the camera could go underground during mouse navigation. [#8504](https://github.com/AnalyticalGraphicsInc/cesium/pull/8504)
23+
* Fixed WebGL warning message about `EXT_float_blend` being implicitly enabled. [#8534](https://github.com/AnalyticalGraphicsInc/cesium/pull/8534)
2324

2425
### 1.65.0 - 2020-01-06
2526

Source/Renderer/Context.js

+14
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ import VertexArray from './VertexArray.js';
251251
this._textureHalfFloatLinear = !!getExtension(gl, ['OES_texture_half_float_linear']);
252252

253253
this._colorBufferFloat = !!getExtension(gl, ['EXT_color_buffer_float', 'WEBGL_color_buffer_float']);
254+
this._floatBlend = !!getExtension(gl, ['EXT_float_blend']);
254255
this._colorBufferHalfFloat = !!getExtension(gl, ['EXT_color_buffer_half_float']);
255256

256257
this._s3tc = !!getExtension(gl, ['WEBGL_compressed_texture_s3tc', 'MOZ_WEBGL_compressed_texture_s3tc', 'WEBKIT_WEBGL_compressed_texture_s3tc']);
@@ -500,6 +501,19 @@ import VertexArray from './VertexArray.js';
500501
}
501502
},
502503

504+
/**
505+
* <code>true</code> if the EXT_float_blend extension is supported. This
506+
* extension enables blending with 32-bit float values.
507+
* @memberof Context.prototype
508+
* @type {Boolean}
509+
* @see {@link https://www.khronos.org/registry/webgl/extensions/EXT_float_blend/}
510+
*/
511+
floatBlend : {
512+
get : function() {
513+
return this._floatBlend;
514+
}
515+
},
516+
503517
/**
504518
* <code>true</code> if the EXT_blend_minmax extension is supported. This
505519
* extension extends blending capabilities by adding two new blend equations:

0 commit comments

Comments
 (0)