mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
fix
This commit is contained in:
parent
cd4fc36261
commit
91296a9826
@ -1019,10 +1019,13 @@ public class GLFW
|
||||
}
|
||||
|
||||
// GLFW Window functions
|
||||
public static long nglfwCreateContext(long share) {
|
||||
return invokePP(share, Functions.CreateContext);
|
||||
}
|
||||
public static long glfwCreateWindow(int width, int height, CharSequence title, long monitor, long share) {
|
||||
EventLoop.OffScreen.check();
|
||||
// Create an ACTUAL EGL context
|
||||
long ptr = invokePP(window, Functions.CreateContext);
|
||||
long ptr = nglfwCreateContext(share);
|
||||
//nativeEglMakeCurrent(ptr);
|
||||
GLFWWindowProperties win = new GLFWWindowProperties();
|
||||
// win.width = width;
|
||||
|
@ -131,7 +131,7 @@ final class ContextGL implements Context {
|
||||
if(shared_context != null) {
|
||||
share = shared_context.handle;
|
||||
}
|
||||
this.handle = GLFW.nativeEglCreateContext(share);
|
||||
this.handle = GLFW.nglfwCreateContext(share);
|
||||
// implementation.create(peer_info, attribList, shared_context != null ? shared_context.handle : null);
|
||||
/* } catch (LWJGLException e) {
|
||||
// GLContext.unloadOpenGLLibrary();
|
||||
|
Loading…
x
Reference in New Issue
Block a user