GLES fix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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")
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user