Buildfixes

This commit is contained in:
Henrik Rydgård 2022-10-17 20:43:58 +02:00
parent 8df6efa712
commit 0a222345c1
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ void VR_Init( ovrJava java, bool useVulkan ) {
xrInitializeLoaderKHR((XrLoaderInitInfoBaseHeaderKHR*)&loaderInitializeInfoAndroid);
}
std::vector<char*> extensions;
std::vector<const char *> extensions;
if (useVulkan) {
extensions.push_back(XR_KHR_VULKAN_ENABLE_EXTENSION_NAME);
} else {

View File

@ -270,7 +270,7 @@ void ovrFramebuffer_Destroy(ovrFramebuffer* frameBuffer) {
void* ovrFramebuffer_SetCurrent(ovrFramebuffer* frameBuffer) {
if (frameBuffer->UseVulkan) {
return frameBuffer->VKFrameBuffers[frameBuffer->TextureSwapChainIndex];
return (void *)frameBuffer->VKFrameBuffers[frameBuffer->TextureSwapChainIndex];
} else {
#if PPSSPP_PLATFORM(ANDROID)
GL(glBindFramebuffer(GL_DRAW_FRAMEBUFFER, frameBuffer->GLFrameBuffers[frameBuffer->TextureSwapChainIndex]));