Skip to content

Don't force WebGL 1 - #14

Merged
joshtynjala merged 1 commit into
openfl:masterfrom
Fancy2209:allow-webgl2
Apr 29, 2026
Merged

Don't force WebGL 1#14
joshtynjala merged 1 commit into
openfl:masterfrom
Fancy2209:allow-webgl2

Conversation

@Fancy2209

Copy link
Copy Markdown
Contributor

Passing -D webgl makes lime attempt WebGL 2, then fallback to WebGL 1, however passing -D webgl1 makes lime only use WebGL 1 and never try to use 2
I see no reason why not to try using WebGL2 before WebGL 1
See:
https://github.com/openfl/lime/blob/964ad6d2650984a11b5828ea92e573ffa2cd2fbe/src/lime/_internal/backend/html5/HTML5Window.hx#L312-L319

Passing -D webgl makes lime attempt WebGL 2, then fallback to WebGL 1
Passing -D webgl1 makes lime only use webgl1
I see no reason why not to try using WebGL2 before WebGL 1
See:
https://github.com/openfl/lime/blob/964ad6d2650984a11b5828ea92e573ffa2cd2fbe/src/lime/_internal/backend/html5/HTML5Window.hx#L312-L319
@joshtynjala
joshtynjala merged commit 2e50b75 into openfl:master Apr 29, 2026
1 check passed
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.

2 participants