Skip to content

Don't force WebGL 1#14

Open
Fancy2209 wants to merge 1 commit intoopenfl:masterfrom
Fancy2209:allow-webgl2
Open

Don't force WebGL 1#14
Fancy2209 wants to merge 1 commit intoopenfl:masterfrom
Fancy2209:allow-webgl2

Conversation

@Fancy2209
Copy link
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
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.

1 participant