Browse Source

heh, fixed bug in glx_is_at_least_version. 2.0 > 1.1

rdb 15 years ago
parent
commit
35e4335e53
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/glxdisplay/glxGraphicsStateGuardian.cxx

+ 3 - 0
panda/src/glxdisplay/glxGraphicsStateGuardian.cxx

@@ -538,6 +538,9 @@ glx_is_at_least_version(int major_version, int minor_version) const {
   if (_glx_version_major < major_version) {
     return false;
   }
+  if (_glx_version_major > major_version) {
+    return true;
+  }
   if (_glx_version_minor < minor_version) {
     return false;
   }