Fix support for ref-prototype test runs
@@ -303,8 +303,9 @@ class Encoder1x(EncoderBase):
"hdr": ".htga"
}
- def __init__(self):
+ def __init__(self, binary=None):
name = "astcenc-%s" % self.VERSION
+ if not binary:
if os.name == 'nt':
binary = "./Binaries/1.7/astcenc.exe"
else:
@@ -377,7 +378,7 @@ class EncoderProto(Encoder1x):
name = "astcenc-%s" % self.VERSION
assert os.name != 'nt', "Windows builds not available"
binary = "./Binaries/Prototype/astcenc"
- super().__init__(name, None, binary)
+ super().__init__(binary)
class EncoderISPC(EncoderBase):
