From ade72b91faf4e419ee001f8b00d600936fd767b2 Mon Sep 17 00:00:00 2001 From: "Matias N. Goldberg" Date: Mon, 14 Oct 2024 19:13:15 -0300 Subject: [PATCH] Fix hasMinVersion() Two drivers having the same minor but different release value must be considered different when looking for workarounds and bugs. --- OgreMain/include/OgreRenderSystemCapabilities.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OgreMain/include/OgreRenderSystemCapabilities.h b/OgreMain/include/OgreRenderSystemCapabilities.h index 740a41a6989..95b13e7b93e 100644 --- a/OgreMain/include/OgreRenderSystemCapabilities.h +++ b/OgreMain/include/OgreRenderSystemCapabilities.h @@ -331,7 +331,7 @@ namespace Ogre bool hasMinVersion( int minMajor, int minMinor, int minRel ) const { - return major > minMajor || ( major == minMajor && minor >= minMinor ) || + return major > minMajor || ( major == minMajor && minor > minMinor ) || ( major == minMajor && minor == minMinor && release >= minRel ); } };