mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
OpenXR - Disable VUlkan for now
This commit is contained in:
1 parent
d0431e494a
commit
de41650318
2 files changed
+7
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user