OpenXR - Disable VUlkan for now

This commit is contained in:
Lubos committed 2022-10-14 16:47:54 +02:00
1 parent d0431e494a
commit de41650318
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -23,6 +23,7 @@
#include "Common/GPU/Vulkan/VulkanLoader.h"
#include "Common/Log.h"
#include "Common/System/System.h"
#include "Common/VR/PPSSPPVR.h"
#if !PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(SWITCH)
#include <dlfcn.h>
@@ -308,6 +309,11 @@ void VulkanSetAvailable(bool available) {
bool VulkanMayBeAvailable() {
//unsupported in VR at the moment
if (IsVRBuild()) {
return false;
}
if (g_vulkanAvailabilityChecked) {
return g_vulkanMayBeAvailable;
}
+1 -1
View File
@@ -222,7 +222,7 @@ bool ovrFramebuffer_CreateVK(XrSession session, ovrFramebuffer* frameBuffer, int
VkImageView attachments[] = { frameBuffer->VKColorImages[i], frameBuffer->VKDepthImages[i] };
VkFramebufferCreateInfo framebufferInfo{};
framebufferInfo.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO;
framebufferInfo.renderPass = VK_NULL_HANDLE;
framebufferInfo.renderPass = VK_NULL_HANDLE; //TODO:This is probably wrong
framebufferInfo.attachmentCount = 2;
framebufferInfo.pAttachments = attachments;
framebufferInfo.width = width;