mesa: improve error messaging for format CSV parser
[mesa.git] / src / mesa / main / format_info.py
index fe2063d7ad1dd6ca99317aaed9d7f0c95b6c5009..3bae57e54edbb3817e72f0d732705de247e08313 100644 (file)
@@ -58,7 +58,7 @@ def get_gl_base_format(fmat):
    elif fmat.has_channel('i') and fmat.num_channels() == 1:
       return 'GL_INTENSITY'
    else:
-      assert False
+      sys.exit("error, could not determine base format for {0}, check swizzle".format(fmat.name));
 
 def get_gl_data_type(fmat):
    if fmat.is_compressed():