From 83fa2fe020c781516a0eadd475448fd0263d75dd Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 1 Sep 2022 22:36:14 +0300 Subject: [PATCH] Make VulkanFramebuffer::is_format_supported const --- source/backends/vulkan/framebuffer_backend.cpp | 2 +- source/backends/vulkan/framebuffer_backend.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/backends/vulkan/framebuffer_backend.cpp b/source/backends/vulkan/framebuffer_backend.cpp index 8f82f3f1..dcf63e98 100644 --- a/source/backends/vulkan/framebuffer_backend.cpp +++ b/source/backends/vulkan/framebuffer_backend.cpp @@ -33,7 +33,7 @@ VulkanFramebuffer::~VulkanFramebuffer() dq.destroy(h); } -bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt) +bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt) const { const VulkanFunctions &vk = device.get_functions(); for(FrameAttachment a: fmt) diff --git a/source/backends/vulkan/framebuffer_backend.h b/source/backends/vulkan/framebuffer_backend.h index faca5658..be336a97 100644 --- a/source/backends/vulkan/framebuffer_backend.h +++ b/source/backends/vulkan/framebuffer_backend.h @@ -27,7 +27,7 @@ protected: VulkanFramebuffer(VulkanFramebuffer &&); ~VulkanFramebuffer(); - bool is_format_supported(const FrameFormat &); + bool is_format_supported(const FrameFormat &) const; void format_changed(const FrameFormat &) { } static void require_layered() { } -- 2.45.2