[PATCH 2/2] Don't try to check for an existing range on opaque pointers.
Ryan C. Gordon
icculus at icculus.org
Sat Jan 7 23:46:24 PST 2012
Things like glFenceSync() won't have them, so you'll fail an assertion.
---
retrace.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/retrace.py b/retrace.py
index 78762ef..fb8ce96 100644
--- a/retrace.py
+++ b/retrace.py
@@ -115,7 +115,7 @@ class OpaqueValueExtractor(ValueExtractor):
in the context of handles.'''
def visit_opaque(self, opaque, lvalue, rvalue):
- print ' %s = static_cast<%s>(retrace::toPointer(%s));' % (lvalue, opaque, rvalue)
+ print ' %s = static_cast<%s>((%s).toPointer());' % (lvalue, opaque, rvalue)
class ValueWrapper(stdapi.Visitor):
--
1.7.5.4
--------------050507080606050209090302--
More information about the apitrace
mailing list