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