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