Regal stuff (test)
This commit is contained in:
1 parent
72203eb83b
commit
949e562c0e
2 files changed
+1
-12
No files matched your search
@@ -90,8 +90,6 @@ public final class GL {
|
||||
create();
|
||||
}
|
||||
}
|
||||
|
||||
private static native void nativeRegalMakeCurrent();
|
||||
|
||||
private GL() {}
|
||||
|
||||
@@ -372,8 +370,7 @@ public final class GL {
|
||||
// This fixed framebuffer issue on 1.13+ 64-bit by another making current
|
||||
GLFW.nativeEglMakeCurrent(GLFW.mainContext);
|
||||
if (isUsingRegal) {
|
||||
nativeRegalMakeCurrent();
|
||||
GLFW.nativeEglMakeCurrent(GLFW.mainContext);
|
||||
callPV(callJ(functionProvider.getFunctionAddress("eglGetCurrentContext"), functionProvider.getFunctionAddress("RegalMakeCurrent"));
|
||||
}
|
||||
} else if (System.getenv("RENDERER").contains("zink")) {
|
||||
int[] dims = getNativeWidthHeight();
|
||||
|
||||
@@ -161,14 +161,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglTerminate(JNIEnv* e
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL_nativeRegalMakeCurrent(JNIEnv *env, jclass clazz) {
|
||||
debug("Regal: making current");
|
||||
|
||||
RegalMakeCurrent_func *RegalMakeCurrent = (RegalMakeCurrent_func *) dlsym(RTLD_DEFAULT, "RegalMakeCurrent");
|
||||
assert(RegalMakeCurrent);
|
||||
RegalMakeCurrent(potatoBridge.eglContext);
|
||||
}
|
||||
|
||||
bool stopMakeCurrent;
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglSwapBuffers(JNIEnv *env, jclass clazz) {
|
||||
jboolean result = (jboolean) eglSwapBuffers(potatoBridge.eglDisplay, eglGetCurrentSurface(EGL_DRAW));
|
||||
|
||||
Reference in new issue
Block a user