diff --git a/Source/Core/VideoBackends/D3D/DXTexture.h b/Source/Core/VideoBackends/D3D/DXTexture.h index 73055343f8..a57c104fa0 100644 --- a/Source/Core/VideoBackends/D3D/DXTexture.h +++ b/Source/Core/VideoBackends/D3D/DXTexture.h @@ -7,7 +7,6 @@ #include "Common/CommonTypes.h" #include "VideoCommon/AbstractTexture.h" -#include "VideoCommon/VideoCommon.h" class D3DTexture2D; diff --git a/Source/Core/VideoBackends/Null/NullTexture.h b/Source/Core/VideoBackends/Null/NullTexture.h index c8f8e77004..65f4252050 100644 --- a/Source/Core/VideoBackends/Null/NullTexture.h +++ b/Source/Core/VideoBackends/Null/NullTexture.h @@ -7,7 +7,6 @@ #include "Common/CommonTypes.h" #include "VideoCommon/AbstractTexture.h" -#include "VideoCommon/VideoCommon.h" namespace Null { diff --git a/Source/Core/VideoBackends/OGL/OGLTexture.h b/Source/Core/VideoBackends/OGL/OGLTexture.h index 34322bf120..029afe272f 100644 --- a/Source/Core/VideoBackends/OGL/OGLTexture.h +++ b/Source/Core/VideoBackends/OGL/OGLTexture.h @@ -7,7 +7,6 @@ #include "Common/GL/GLUtil.h" #include "VideoCommon/AbstractTexture.h" -#include "VideoCommon/VideoCommon.h" namespace OGL { diff --git a/Source/Core/VideoBackends/Software/SWTexture.h b/Source/Core/VideoBackends/Software/SWTexture.h index 8737792cc0..4d6189bb4f 100644 --- a/Source/Core/VideoBackends/Software/SWTexture.h +++ b/Source/Core/VideoBackends/Software/SWTexture.h @@ -7,7 +7,6 @@ #include "Common/CommonTypes.h" #include "VideoCommon/AbstractTexture.h" -#include "VideoCommon/VideoCommon.h" namespace SW { diff --git a/Source/Core/VideoBackends/Vulkan/VKTexture.h b/Source/Core/VideoBackends/Vulkan/VKTexture.h index 0983703db5..056f50c6e8 100644 --- a/Source/Core/VideoBackends/Vulkan/VKTexture.h +++ b/Source/Core/VideoBackends/Vulkan/VKTexture.h @@ -8,7 +8,6 @@ #include #include "VideoCommon/AbstractTexture.h" -#include "VideoCommon/VideoCommon.h" namespace Vulkan { diff --git a/Source/Core/VideoCommon/AbstractTexture.cpp b/Source/Core/VideoCommon/AbstractTexture.cpp index 1b6fac8bff..b756651640 100644 --- a/Source/Core/VideoCommon/AbstractTexture.cpp +++ b/Source/Core/VideoCommon/AbstractTexture.cpp @@ -38,7 +38,7 @@ size_t AbstractTexture::CalculateHostTextureLevelPitch(AbstractTextureFormat for } } -const TextureConfig AbstractTexture::GetConfig() const +const TextureConfig& AbstractTexture::GetConfig() const { return m_config; } diff --git a/Source/Core/VideoCommon/AbstractTexture.h b/Source/Core/VideoCommon/AbstractTexture.h index 2b06d9c401..94c082af70 100644 --- a/Source/Core/VideoCommon/AbstractTexture.h +++ b/Source/Core/VideoCommon/AbstractTexture.h @@ -4,10 +4,12 @@ #pragma once +#include +#include + #include "Common/CommonTypes.h" #include "Common/MathUtil.h" #include "VideoCommon/TextureConfig.h" -#include "VideoCommon/VideoCommon.h" class AbstractTexture { @@ -26,7 +28,7 @@ public: static bool IsCompressedHostTextureFormat(AbstractTextureFormat format); static size_t CalculateHostTextureLevelPitch(AbstractTextureFormat format, u32 row_length); - const TextureConfig GetConfig() const; + const TextureConfig& GetConfig() const; protected: const TextureConfig m_config;