From db11621f6683a1e96a1fe45231e8d9eef539994d Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 15 Aug 2020 17:18:23 -0700 Subject: Fixed 32-bit Windows build --- Graphics/GraphicsEngine/include/RenderPassBase.hpp | 4 ++-- Graphics/GraphicsEngine/interface/Framebuffer.h | 2 +- Graphics/GraphicsEngine/interface/RenderPass.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/RenderPassBase.hpp b/Graphics/GraphicsEngine/include/RenderPassBase.hpp index c2a6b5c1..fbc65dd7 100644 --- a/Graphics/GraphicsEngine/include/RenderPassBase.hpp +++ b/Graphics/GraphicsEngine/include/RenderPassBase.hpp @@ -193,8 +193,8 @@ public: else DstSubpass.pPreserveAttachments = nullptr; } - VERIFY_EXPR(pCurrAttachmentRef - m_pAttachmentReferences == TotalAttachmentReferencesCount); - VERIFY_EXPR(pCurrPreserveAttachment - m_pPreserveAttachments == TotalPreserveAttachmentsCount); + VERIFY_EXPR(pCurrAttachmentRef - m_pAttachmentReferences == static_cast(TotalAttachmentReferencesCount)); + VERIFY_EXPR(pCurrPreserveAttachment - m_pPreserveAttachments == static_cast(TotalPreserveAttachmentsCount)); if (Desc.DependencyCount != 0) { diff --git a/Graphics/GraphicsEngine/interface/Framebuffer.h b/Graphics/GraphicsEngine/interface/Framebuffer.h index 9b00ea70..3bc10705 100644 --- a/Graphics/GraphicsEngine/interface/Framebuffer.h +++ b/Graphics/GraphicsEngine/interface/Framebuffer.h @@ -73,7 +73,7 @@ typedef struct FramebufferDesc FramebufferDesc; class IFramebuffer : public IDeviceObject { public: - virtual const FramebufferDesc& GetDesc() const override = 0; + virtual const FramebufferDesc& DILIGENT_CALL_TYPE GetDesc() const override = 0; }; #else diff --git a/Graphics/GraphicsEngine/interface/RenderPass.h b/Graphics/GraphicsEngine/interface/RenderPass.h index 3f822e0c..61feca48 100644 --- a/Graphics/GraphicsEngine/interface/RenderPass.h +++ b/Graphics/GraphicsEngine/interface/RenderPass.h @@ -369,7 +369,7 @@ typedef struct RenderPassDesc RenderPassDesc; class IRenderPass : public IDeviceObject { public: - virtual const RenderPassDesc& GetDesc() const override = 0; + virtual const RenderPassDesc& DILIGENT_CALL_TYPE GetDesc() const override = 0; }; #else -- cgit v1.2.3