JBR-7307 Add stub for VKInstance.initNative with disabled Vulkan.

(cherry picked from commit e834ce867f)
This commit is contained in:
Nikita Gubarkov
2024-06-14 23:29:58 +02:00
committed by jbrbot
parent 36f6ce2998
commit c93fc5169b
2 changed files with 10 additions and 2 deletions

View File

@@ -26,6 +26,7 @@
#include <malloc.h>
#include <Trace.h>
#include "jlong_md.h"
#include "jvm_md.h"
#include "VKBase.h"
#include "VKVertex.h"

View File

@@ -26,10 +26,17 @@
// These are stubs in case we were built with Vulkan disabled.
#ifndef VULKAN_ENABLED
#include "jlong_md.h"
#include "jni.h"
jboolean VK_Init(jboolean verbose, jint requestedDevice) {
return 0;
/*
* Class: sun_java2d_vulkan_VKInstance
* Method: init
* Signature: (JZI)Z
*/
JNIEXPORT jboolean JNICALL
Java_sun_java2d_vulkan_VKInstance_initNative(JNIEnv *env, jclass wlge, jlong nativePtr, jboolean verb, jint requestedDevice) {
return JNI_FALSE;
}
#endif