From 5f55e21c7c571df3e59b94276b2ba71f03531ae0 Mon Sep 17 00:00:00 2001 From: Fancy2209 <64917206+Fancy2209@users.noreply.github.com> Date: Fri, 27 Feb 2026 09:22:15 -0100 Subject: [PATCH] Don't force webgl 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 --- scripts/build.hxml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.hxml b/scripts/build.hxml index 2fe1cd0..7cb80c3 100644 --- a/scripts/build.hxml +++ b/scripts/build.hxml @@ -32,7 +32,7 @@ -D tools -D commonjs -D howlerjs --D webgl1 +-D webgl --macro AS3ExternsGenerator.generate({outputPath: "../lib", includedPackages: ["openfl"], allowedPackageReferences: [], renameSymbols: ["openfl.VectorData", "openfl.Vector", "openfl.utils.ByteArrayData", "openfl.utils.ByteArray", "lime.app.Future", "openfl.utils.Future"]}) --macro TSExternsGenerator.generate({outputPath: "../lib", includedPackages: ["openfl"], allowedPackageReferences: [], renameSymbols: ["openfl.VectorData", "openfl.Vector", "openfl.utils.ByteArrayData", "openfl.utils.ByteArray", "lime.app.Future", "openfl.utils.Future"]}) ---no-inline \ No newline at end of file +--no-inline