Skip to content

Commit

Permalink
Add TSDoc and log warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Mar 18, 2024
1 parent 7b95f8c commit 1fe3473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/src/adapter/device.ts
Expand Up @@ -479,7 +479,7 @@ export abstract class Device {
throw new Error('not implemented');
}

/** @deprecated */
/** @deprecated - will be removed - should use for debugging only */
resetWebGL(): void {
throw new Error('not implemented');
}
Expand Down
1 change: 1 addition & 0 deletions modules/webgl/src/adapter/webgl-device.ts
Expand Up @@ -417,6 +417,7 @@ ${device.info.vendor}, ${device.info.renderer} for canvas: ${device.canvasContex
}

override resetWebGL(): void {
log.warn('WebGLDevice.resetWebGL is deprecated, use only for debugging')();
resetGLParameters(this.gl);
}

Expand Down

0 comments on commit 1fe3473

Please sign in to comment.