diff options
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r-- | subsurface-desktop-main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp index a37fd3cb5..ff92236a9 100644 --- a/subsurface-desktop-main.cpp +++ b/subsurface-desktop-main.cpp @@ -190,7 +190,7 @@ void validateGL() } if (sscanf(verChar, "%f", &verFloat) == 1) { verMajor = (GLint)verFloat; - verMinor = (GLint)((verFloat - verMajor) * 10.f); + verMinor = (GLint)roundf((verFloat - verMajor) * 10.f); } } // attempt to detect version using the newer API |