Use opaque selection in webgl, fix selection default rgba

This commit is contained in:
Daniel Imms
2019-11-10 11:23:34 -08:00
parent 51c77568a8
commit 2da77dd5f8
4 changed files with 9 additions and 3 deletions
@@ -218,7 +218,7 @@ export class GlyphRenderer {
this._vertices.selectionAttributes = slice(this._vertices.attributes, 0);
const bg = (this._colors.selection.rgba >>> 8) | Attributes.CM_RGB;
const bg = (this._colors.selectionOpaque.rgba >>> 8) | Attributes.CM_RGB;
if (columnSelectMode) {
const startCol = model.selection.startCol;
@@ -155,7 +155,7 @@ export class RectangleRenderer {
private _updateCachedColors(): void {
this._bgFloat = this._colorToFloat32Array(this._colors.background);
this._selectionFloat = this._colorToFloat32Array(this._colors.selection);
this._selectionFloat = this._colorToFloat32Array(this._colors.selectionOpaque);
}
private _updateViewportRectangle(): void {