mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-7307 Add stub for VKInstance.initNative with disabled Vulkan.
(cherry picked from commit e834ce867f)
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <malloc.h>
|
||||
#include <Trace.h>
|
||||
#include "jlong_md.h"
|
||||
#include "jvm_md.h"
|
||||
#include "VKBase.h"
|
||||
#include "VKVertex.h"
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user