X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=driver.py;h=1c4904cc24b335f3672e846386ac4fd707ce89ce;hp=27eef97074db66b0358ba78045b063abeb352baa;hb=1275f1f90b4d010cc652229f73375237821962d5;hpb=6dde1c49a726a38e86e61b1a85a1014954e79cad diff --git a/driver.py b/driver.py index 27eef97..1c4904c 100755 --- a/driver.py +++ b/driver.py @@ -131,7 +131,8 @@ class TraceChecker: if mo: self.call_no = int(mo.group(1)) function_name = mo.group(2) - if function_name.find('SwapBuffers') != -1: + if function_name.find('SwapBuffers') != -1 or \ + line.find('kCGLPFADoubleBuffer') != -1: swapbuffers += 1 if function_name in ('glFlush', 'glFinish'): flushes += 1