This commit is contained in:
Joshua Granick
2018-07-23 15:42:37 -07:00
parent f17cb93440
commit 095fce9d78
5 changed files with 272 additions and 272 deletions

View File

@@ -446,7 +446,7 @@ class NativeApplication {
case OPENGL, OPENGLES, WEBGL:
#if (lime_cffi && lime_opengl && !display)
#if (lime_cffi && (lime_opengl || lime_opengles) && !display)
var gl = window.context.gl;
(gl:NativeOpenGLRenderContext).__contextLost ();
if (GL.context == gl) GL.context = null;

View File

@@ -1781,7 +1781,7 @@ class NativeCFFI {
#end
#if (lime_cffi && !macro && lime_opengl)
#if (lime_cffi && !macro && (lime_opengl || lime_opengles))
#if cpp
#if (disable_cffi || haxe_ver < "3.4.0")

View File

@@ -81,7 +81,7 @@ class NativeWindow {
if (!Reflect.hasField (contextAttributes, "stencil")) contextAttributes.stencil = true;
if (!Reflect.hasField (contextAttributes, "vsync")) contextAttributes.vsync = false;
#if (cairo || !lime_opengl) contextAttributes.type = CAIRO; #end
#if (cairo || (!lime_opengl && !lime_opengles)) contextAttributes.type = CAIRO; #end
if (Reflect.hasField (contextAttributes, "type") && contextAttributes.type == CAIRO) contextAttributes.hardware = false;
if (Reflect.hasField (attributes, "allowHighDPI") && attributes.allowHighDPI) flags |= cast WindowFlags.WINDOW_FLAG_ALLOW_HIGHDPI;

View File

@@ -3347,7 +3347,7 @@ class GL {
if (id == 0) return null;
#if (lime_cffi && lime_opengl && !macro)
#if (lime_cffi && (lime_opengl || lime_opengles) && !macro)
var object = NativeCFFI.lime_gl_object_from_id (id, type);
if (object != null) {