Skip to content

Commit d366ae7

Browse files
ACrazyTownjoshtynjala
authored andcommitted
HTML5Window: update context.attributes.hardware when creating context
1 parent f4c685d commit d366ae7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lime/_internal/backend/html5/HTML5Window.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ class HTML5Window
354354
context.canvas2D = cast canvas.getContext("2d");
355355
context.type = CANVAS;
356356
context.version = "";
357+
context.attributes.hardware = false;
357358
}
358359
else
359360
{
@@ -375,6 +376,7 @@ class HTML5Window
375376

376377
context.type = WEBGL;
377378
context.version = isWebGL2 ? "2" : "1";
379+
context.attributes.hardware = true;
378380
}
379381
}
380382

0 commit comments

Comments
 (0)