Set hardware attribute on context creation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user