diff --git a/core/rend/vulkan/vulkan.h b/core/rend/vulkan/vulkan.h index 7d2aeae7e..1d6640e1f 100644 --- a/core/rend/vulkan/vulkan.h +++ b/core/rend/vulkan/vulkan.h @@ -50,7 +50,7 @@ public: VkInstance GetInstance() const { return static_cast(instance.get()); } u32 GetGraphicsQueueFamilyIndex() const { return graphicsQueueIndex; } - void SetSurface(VkSurfaceKHR surface) { this->surface = surface; } + void SetSurface(VkSurfaceKHR surface) { this->surface = vk::SurfaceKHR(surface); } void SetWindowSize(u32 width, u32 height) { this->width = screen_width = width; this->height = screen_height = height; } void NewFrame(); void BeginRenderPass();