Set hardware attribute on context creation

This commit is contained in:
unknown
2025-02-08 19:54:00 +01:00
parent 09040f443d
commit f331941a6b

View File

@@ -132,6 +132,7 @@ class NativeWindow
var gl = new NativeOpenGLRenderContext();
useHardware = true;
contextAttributes.hardware = true;
#if lime_opengl
context.gl = gl;
@@ -155,6 +156,7 @@ class NativeWindow
default:
useHardware = false;
contextAttributes.hardware = false;
#if lime_cairo
context.cairo = cairo;