From 8ca48135d9ebf0de1dfd18c045a828c3e439787d Mon Sep 17 00:00:00 2001 From: Jasper Bekkers Date: Tue, 13 Jun 2017 13:41:11 +0200 Subject: [PATCH] Make image2dBase::load const imageLoad takes a const-ref to image and calls load on it, make the load method const to prevent compile error. --- include/spirv_cross/image.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spirv_cross/image.hpp b/include/spirv_cross/image.hpp index ed763a48..73de894f 100644 --- a/include/spirv_cross/image.hpp +++ b/include/spirv_cross/image.hpp @@ -33,7 +33,7 @@ template struct image2DBase { virtual ~image2DBase() = default; - inline virtual T load(glm::ivec2 coord) + inline virtual T load(glm::ivec2 coord) const { return T(0, 0, 0, 1); }