@luma.gl/webgl 9.0.4 → 9.0.5

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/dist/index.cjs CHANGED
@@ -3158,8 +3158,8 @@ var WEBGLRenderPass = class extends import_core15.RenderPass {
3158
3158
  glParameters.viewport = parameters.viewport;
3159
3159
  }
3160
3160
  }
3161
- glParameters.scissorTest = Boolean(parameters.scissorRect);
3162
3161
  if (parameters.scissorRect) {
3162
+ glParameters.scissorTest = true;
3163
3163
  glParameters.scissor = parameters.scissorRect;
3164
3164
  }
3165
3165
  if (parameters.blendConstant) {
@@ -5267,11 +5267,15 @@ var _WebGLDevice = class extends import_core27.Device {
5267
5267
  return getGLParameters(this.gl, parameters);
5268
5268
  }
5269
5269
  withParametersWebGL(parameters, func) {
5270
- withGLParameters(this.gl, parameters, func);
5270
+ return withGLParameters(this.gl, parameters, func);
5271
5271
  }
5272
5272
  clearWebGL(options) {
5273
5273
  clear(this, options);
5274
5274
  }
5275
+ resetWebGL() {
5276
+ import_core27.log.warn("WebGLDevice.resetWebGL is deprecated, use only for debugging")();
5277
+ resetGLParameters(this.gl);
5278
+ }
5275
5279
  //
5276
5280
  // WebGL-only API (not part of `Device` API)
5277
5281
  //