]> git.tdb.fi Git - libs/gl.git/blobdiff - scripts/extgen.py
Add functions for setting arrays of 2x2 and 3x3 matrix uniforms
[libs/gl.git] / scripts / extgen.py
index 35f016600487de594fa511d3506f77cb7e5c006b..15ef167bfaf60c9d3de0a162e53b13f7150ace26 100755 (executable)
@@ -399,7 +399,7 @@ def detect_backport_extension(host_api, things):
                        best_ext = e
                        best_count = count
 
-       if best_count*2>=total_count:
+       if total_count and best_count*2>=total_count:
                print "Warning: Inconsistent backport extension %s"%best_ext.name
 
 def collect_extensions(thing, api, exts):
@@ -514,7 +514,7 @@ class SourceGenerator:
                self.enums.sort(key=(lambda e: e.value))
                self.core_version = detect_core_version(host_api, things, debug)
                self.deprecated_version = detect_deprecated_version(host_api, things, debug)
-               self.backport_ext = detect_backport_extension(host_api, things);
+               self.backport_ext = detect_backport_extension(host_api, things)
                b, e = detect_source_extension(host_api, things, debug)
                self.base_version = b
                self.source_exts = e