Squashed from chore/license-relicense. Full message preserved in the original branch commitbb77eb5. See ADR-0002 for the decision rationale. Refs: ADR-0002, commitbb77eb5
23 lines
No EOL
1 KiB
JavaScript
23 lines
No EOL
1 KiB
JavaScript
// SPDX-License-Identifier: BSL-1.1
|
|
// Copyright (c) 2026 Rug Munch Media LLC
|
|
//
|
|
// Part of Pry — Stealth Script.
|
|
// Licensed under Business Source License 1.1 — see LICENSE-BSL-STEALTH.
|
|
|
|
(() => {
|
|
const noise = 0.0008210699841618288;
|
|
const getParameter = WebGLRenderingContext.prototype.getParameter;
|
|
WebGLRenderingContext.prototype.getParameter = function(p) {
|
|
if (p === 37445) return 'Intel Inc.';
|
|
if (p === 37446) return 'Intel Iris OpenGL Engine';
|
|
const result = getParameter.call(this, p);
|
|
if (typeof result === 'number' && !Number.isInteger(result)) return result + noise;
|
|
return result;
|
|
};
|
|
const getExtension = WebGLRenderingContext.prototype.getExtension;
|
|
WebGLRenderingContext.prototype.getExtension = function(name) {
|
|
if (name === 'WEBGL_debug_renderer_info') return null;
|
|
return getExtension.call(this, name);
|
|
};
|
|
})();
|
|
|