vulkan: android: fix display orientation

This commit is contained in:
niki
2022-08-20 21:03:49 +02:00
parent 23666b1fde
commit 5f2fdc0dd0
2 changed files with 33 additions and 3 deletions
+3 -3
View File
@@ -19,7 +19,6 @@
#include <iostream>
#include <memory>
#include <functional>
#include <dlfcn.h>
namespace love {
@@ -244,7 +243,8 @@ private:
VkQueue graphicsQueue = VK_NULL_HANDLE;
VkQueue presentQueue = VK_NULL_HANDLE;
VkSurfaceKHR surface = VK_NULL_HANDLE;
VkSwapchainKHR swapChain = VK_NULL_HANDLE;
VkSwapchainKHR swapChain = VK_NULL_HANDLE;
Matrix4 displayRotation;
std::vector<VkImage> swapChainImages;
VkFormat swapChainImageFormat = VK_FORMAT_UNDEFINED;
VkExtent2D swapChainExtent = VkExtent2D();
@@ -274,9 +274,9 @@ private:
// functions that need to be called to cleanup objects that were needed for rendering a frame.
// just like batchedDrawBuffers we need a vector for each frame in flight.
std::vector<std::vector<std::function<void()>>> cleanUpFunctions;
graphics::Texture* currentTexture = nullptr;
// render pass variables.
graphics::Texture* currentTexture = nullptr;
Texture* renderTargetTexture = nullptr;
float currentViewportWidth = 0;
float currentViewportHeight = 0;