From f11396767fa8c441d4b20403369c29e13cef7499 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 3 Jan 2018 08:46:51 -0800 Subject: [PATCH] Make nxt::TextureBase::GetDevice const Because it is. --- src/backend/Texture.cpp | 2 +- src/backend/Texture.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/Texture.cpp b/src/backend/Texture.cpp index 4d8ee12f0f..a6836b9747 100644 --- a/src/backend/Texture.cpp +++ b/src/backend/Texture.cpp @@ -85,7 +85,7 @@ namespace backend { mCurrentUsage(builder->mCurrentUsage) { } - DeviceBase* TextureBase::GetDevice() { + DeviceBase* TextureBase::GetDevice() const { return mDevice; } diff --git a/src/backend/Texture.h b/src/backend/Texture.h index 2f380f979d..97389ef9d3 100644 --- a/src/backend/Texture.h +++ b/src/backend/Texture.h @@ -46,7 +46,7 @@ namespace backend { bool IsTransitionPossible(nxt::TextureUsageBit usage) const; void UpdateUsageInternal(nxt::TextureUsageBit usage); - DeviceBase* GetDevice(); + DeviceBase* GetDevice() const; // NXT API TextureViewBuilder* CreateTextureViewBuilder();