summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/SamplerCommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/SamplerCommon.h')
-rw-r--r--Source/Core/VideoCommon/SamplerCommon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/SamplerCommon.h b/Source/Core/VideoCommon/SamplerCommon.h
index a16ba0fcd4..3b36eab09c 100644
--- a/Source/Core/VideoCommon/SamplerCommon.h
+++ b/Source/Core/VideoCommon/SamplerCommon.h
@@ -16,13 +16,13 @@ namespace SamplerCommon
template <class T>
constexpr bool IsBpTexMode0PointFiltering(const T& tm0)
{
- return tm0.min_filter < 4 && !tm0.mag_filter;
+ return tm0.min_filter == FilterMode::Near && tm0.mag_filter == FilterMode::Near;
}
// Check if the minification filter has mipmap based filtering modes enabled.
template <class T>
constexpr bool AreBpTexMode0MipmapsEnabled(const T& tm0)
{
- return (tm0.min_filter & 3) != 0;
+ return tm0.mipmap_filter != MipMode::None;
}
} // namespace SamplerCommon