diff --git a/Minecraft.Client/Common/UI/UIController.cpp b/Minecraft.Client/Common/UI/UIController.cpp index 00afeae..8230d69 100644 --- a/Minecraft.Client/Common/UI/UIController.cpp +++ b/Minecraft.Client/Common/UI/UIController.cpp @@ -375,6 +375,9 @@ void UIController::SetupFont() // TICKING void UIController::tick() { +#ifdef USE_VULKAN_RENDERER + return; +#endif if(m_navigateToHomeOnReload && !ui.IsReloadingSkin()) { ui.CleanUpSkinReload(); diff --git a/Minecraft.Client/Platform_Libs/Dev/RenderVk/VulkanRenderManager.cpp b/Minecraft.Client/Platform_Libs/Dev/RenderVk/VulkanRenderManager.cpp index 7f9ea01..bf9ad85 100644 --- a/Minecraft.Client/Platform_Libs/Dev/RenderVk/VulkanRenderManager.cpp +++ b/Minecraft.Client/Platform_Libs/Dev/RenderVk/VulkanRenderManager.cpp @@ -1438,7 +1438,13 @@ HRESULT C4JRender::LoadTextureData(const char *szFilename, D3DXIMAGE_INFO *pSrcI return E_FAIL; } - FILE *file = std::fopen(szFilename, "rb"); + char fixedPath[1024]; + std::strncpy(fixedPath, szFilename, sizeof(fixedPath) - 1); + fixedPath[sizeof(fixedPath) - 1] = '\0'; + for (char *p = fixedPath; *p; ++p) + if (*p == '\\') *p = '/'; + + FILE *file = std::fopen(fixedPath, "rb"); if (file == nullptr) { #ifdef _DEBUG