Skip to content

WebGL1: Forbid #extension: disable after non-preprocessor tokens#3774

Merged
kenrussell merged 1 commit into
KhronosGroup:mainfrom
ShabbyX:forbid-late-extension-disable
Jun 24, 2026
Merged

WebGL1: Forbid #extension: disable after non-preprocessor tokens#3774
kenrussell merged 1 commit into
KhronosGroup:mainfrom
ShabbyX:forbid-late-extension-disable

Conversation

@ShabbyX

@ShabbyX ShabbyX commented May 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #3772

@CLAassistant

CLAassistant commented May 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

kenrussell added a commit to kenrussell/WebGL that referenced this pull request Jun 24, 2026
These tests apply only to WebGL 1.0, which for historical reasons,
allowed extensions to be enabled after non-preprocessor tokens. It was
infeasible to allow extensions to be disabled late in shader parsing,
so the spec has been revised to forbid this behavior. This does not
seem to impact any WebGL applications in production.

Follow-up to KhronosGroup#3774.
@kenrussell

Copy link
Copy Markdown
Member

Tests are up for review - merging this spec change now.

@kenrussell kenrussell merged commit 109abd5 into KhronosGroup:main Jun 24, 2026
2 checks passed
kenrussell added a commit that referenced this pull request Jun 24, 2026
These tests apply only to WebGL 1.0, which for historical reasons,
allowed extensions to be enabled after non-preprocessor tokens. It was
infeasible to allow extensions to be disabled late in shader parsing,
so the spec has been revised to forbid this behavior. This does not
seem to impact any WebGL applications in production.

Follow-up to #3774.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebGL1: Forbid #extension: disable after non-preprocessor tokens

4 participants