From 48fc376cdc7b626b326220fafe39d80c6c366081 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 10 Sep 2017 15:32:26 +0300 Subject: [PATCH] Simplify version comparisons The less-than operator was implemented a while ago but these two cases were missed. --- source/extension.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/extension.cpp b/source/extension.cpp index c543328b..a0959861 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -201,7 +201,7 @@ inline Version _get_gl_version() if(const char *force_ver_ptr = getenv("MSPGL_FORCE_VERSION")) { Version force_ver(force_ver_ptr); - if(!(force_ver>=ver)) + if(force_ver=ver)) + if(force_ver