Fix nvenc build

This commit is contained in:
Patrick Nicolas
2023-10-25 09:13:33 +02:00
parent 4e233d99c2
commit c3383521a4
+2 -1
View File
@@ -19,6 +19,7 @@
#include "video_encoder_nvenc.h"
#include "vk/vk_helpers.h"
#include <stdexcept>
#define NVENC_CHECK_NOENCODER(x) \
@@ -200,7 +201,7 @@ void VideoEncoderNvenc::SetImages(int full_width,
int fd;
VkResult res = vk->vkGetMemoryFdKHR(vk->device, &getinfo, &fd);
vk_check_error("vkGetMemoryFdKHR", res, );
VK_CHK_WITH_RET(res, "vkGetMemoryFdKHR", );
VkMemoryRequirements memoryreq;
vk->vkGetImageMemoryRequirements(vk->device, images[i], &memoryreq);