Skip to content

Commit

Permalink
Fix hasMinVersion()
Browse files Browse the repository at this point in the history
Two drivers having the same minor but different release value must be
considered different when looking for workarounds and bugs.
  • Loading branch information
darksylinc committed Oct 14, 2024
1 parent 7127253 commit ade72b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OgreMain/include/OgreRenderSystemCapabilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
};
Expand Down

0 comments on commit ade72b9

Please sign in to comment.