@zappar/zappar-cv 3.0.1-beta.4 → 3.0.1-beta.6

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/README.md CHANGED
@@ -18,8 +18,8 @@ npm i @zappar/zappar-cv
18
18
 
19
19
  You can use our CDN from within your HTML:
20
20
  ```
21
- <script src="https://libs.zappar.com/zappar-cv/3.0.1-beta.4/zappar-cv.js"></script>
21
+ <script src="https://libs.zappar.com/zappar-cv/3.0.1-beta.6/zappar-cv.js"></script>
22
22
  ```
23
23
 
24
24
  Or you can download and host our standalone JavaScript bundle:
25
- [https://libs.zappar.com/zappar-cv/3.0.1-beta.4/zappar-cv.zip](https://libs.zappar.com/zappar-cv/3.0.1-beta.4/zappar-cv.zip)
25
+ [https://libs.zappar.com/zappar-cv/3.0.1-beta.6/zappar-cv.zip](https://libs.zappar.com/zappar-cv/3.0.1-beta.6/zappar-cv.zip)
@@ -317,10 +317,11 @@ export class MSTPCameraSource extends Source {
317
317
  let texture = pipeline.getVideoTexture();
318
318
  if (!texture)
319
319
  return;
320
+ const previousBoundTexture = gl.getParameter(gl.TEXTURE_BINDING_2D);
320
321
  gl.bindTexture(gl.TEXTURE_2D, texture);
321
322
  gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false);
322
323
  gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, info.frame);
323
- gl.bindTexture(gl.TEXTURE_2D, null);
324
+ gl.bindTexture(gl.TEXTURE_2D, previousBoundTexture);
324
325
  info.texture = texture;
325
326
  info.frame.close();
326
327
  delete info.frame;
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.1-beta.4";
1
+ export declare const VERSION = "3.0.1-beta.6";
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "3.0.1-beta.4";
1
+ export const VERSION = "3.0.1-beta.6";