Skip to content

Commit

Permalink
1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirosakiMio committed Feb 7, 2024
1 parent 9128425 commit 1753010
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FCLauncher/src/main/jni/glfw/osmesa_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <internal.h>
#include <android/native_window.h>
#include <android/log.h>
#include <jni.h>

int (*vtest_main) (int argc, char** argv);
void (*vtest_swap_buffers) (void);
Expand Down Expand Up @@ -468,3 +469,8 @@ GLFWAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* handle)
return window->context.osmesa.handle;
}

JNIEXPORT jlong JNICALL
Java_org_lwjgl_vulkan_VK_getVulkanDriverHandle(JNIEnv *env, jclass thiz) {
if (getenv("VULKAN_PTR") == NULL) load_vulkan();
return strtoul(getenv("VULKAN_PTR"), NULL, 0x10);
}

0 comments on commit 1753010

Please sign in to comment.