@xterm/addon-webgl 0.20.0-beta.236 → 0.20.0-beta.238

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xterm/addon-webgl",
3
- "version": "0.20.0-beta.236",
3
+ "version": "0.20.0-beta.238",
4
4
  "author": {
5
5
  "name": "The xterm.js authors",
6
6
  "url": "https://xtermjs.org/"
@@ -23,8 +23,8 @@
23
23
  "prepublishOnly": "npm run package",
24
24
  "start": "node ../../demo/start"
25
25
  },
26
- "commit": "ebe8cb749ae3598f25c4af8e0a208a0686d78dcb",
26
+ "commit": "2ab0f10a266ec3937142c8ddb2a6ca6ad0dcff7b",
27
27
  "peerDependencies": {
28
- "@xterm/xterm": "^6.1.0-beta.237"
28
+ "@xterm/xterm": "^6.1.0-beta.239"
29
29
  }
30
30
  }
@@ -59,6 +59,7 @@ export function configEquals(a: ICharAtlasConfig, b: ICharAtlasConfig): boolean
59
59
  }
60
60
  }
61
61
  return a.devicePixelRatio === b.devicePixelRatio &&
62
+ a.deviceMaxTextureSize === b.deviceMaxTextureSize &&
62
63
  a.customGlyphs === b.customGlyphs &&
63
64
  a.lineHeight === b.lineHeight &&
64
65
  a.letterSpacing === b.letterSpacing &&
@@ -67,6 +68,8 @@ export function configEquals(a: ICharAtlasConfig, b: ICharAtlasConfig): boolean
67
68
  a.fontWeight === b.fontWeight &&
68
69
  a.fontWeightBold === b.fontWeightBold &&
69
70
  a.allowTransparency === b.allowTransparency &&
71
+ a.deviceCellWidth === b.deviceCellWidth &&
72
+ a.deviceCellHeight === b.deviceCellHeight &&
70
73
  a.deviceCharWidth === b.deviceCharWidth &&
71
74
  a.deviceCharHeight === b.deviceCharHeight &&
72
75
  a.drawBoldTextInBrightColors === b.drawBoldTextInBrightColors &&
@@ -137,8 +137,9 @@ export class GlyphRenderer extends Disposable {
137
137
  this._textureLocation = throwIfFalsy(gl.getUniformLocation(this._program, 'u_texture'));
138
138
 
139
139
  // Create and set the vertex array object
140
- this._vertexArrayObject = gl.createVertexArray();
141
- gl.bindVertexArray(this._vertexArrayObject);
140
+ const vertexArrayObject = this._vertexArrayObject = gl.createVertexArray();
141
+ this._register(toDisposable(() => gl.deleteVertexArray(vertexArrayObject)));
142
+ gl.bindVertexArray(vertexArrayObject);
142
143
 
143
144
  // Setup a_unitquad, this defines the 4 vertices of a rectangle
144
145
  const unitQuadVertices = new Float32Array([0, 0, 1, 0, 0, 1, 1, 1]);
@@ -104,8 +104,9 @@ export class RectangleRenderer extends Disposable {
104
104
  this._projectionLocation = throwIfFalsy(gl.getUniformLocation(this._program, 'u_projection'));
105
105
 
106
106
  // Create and set the vertex array object
107
- this._vertexArrayObject = gl.createVertexArray();
108
- gl.bindVertexArray(this._vertexArrayObject);
107
+ const vertexArrayObject = this._vertexArrayObject = gl.createVertexArray();
108
+ this._register(toDisposable(() => gl.deleteVertexArray(vertexArrayObject)));
109
+ gl.bindVertexArray(vertexArrayObject);
109
110
 
110
111
  // Setup a_unitquad, this defines the 4 vertices of a rectangle
111
112
  const unitQuadVertices = new Float32Array([0, 0, 1, 0, 0, 1, 1, 1]);
package/src/Types.ts CHANGED
@@ -28,6 +28,7 @@ export interface ICursorRenderModel {
28
28
  export interface IWebGL2RenderingContext extends WebGLRenderingContext {
29
29
  vertexAttribDivisor(index: number, divisor: number): void;
30
30
  createVertexArray(): IWebGLVertexArrayObject;
31
+ deleteVertexArray(vao: IWebGLVertexArrayObject): void;
31
32
  bindVertexArray(vao: IWebGLVertexArrayObject): void;
32
33
  drawElementsInstanced(mode: number, count: number, type: number, offset: number, instanceCount: number): void;
33
34
  }