Skip to content

Commit

Permalink
Merge pull request #1902 from ACrazyTown/fix/rendercontext-attribute-…
Browse files Browse the repository at this point in the history
…hardware

Set RenderContextAttributes.hardware upon context creation
  • Loading branch information
dimensionscape authored Feb 8, 2025
2 parents 09040f4 + f331941 commit d3aeb9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lime/_internal/backend/native/NativeWindow.hx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class NativeWindow
var gl = new NativeOpenGLRenderContext();

useHardware = true;
contextAttributes.hardware = true;

#if lime_opengl
context.gl = gl;
Expand All @@ -155,6 +156,7 @@ class NativeWindow

default:
useHardware = false;
contextAttributes.hardware = false;

#if lime_cairo
context.cairo = cairo;
Expand Down

0 comments on commit d3aeb9f

Please sign in to comment.