projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
694dc0b
)
Warn when failed to unmap buffer too.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Thu, 1 Mar 2012 15:44:28 +0000
(15:44 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Thu, 8 Mar 2012 09:20:03 +0000
(10:20 +0100)
glretrace.py
patch
|
blob
|
history
diff --git
a/glretrace.py
b/glretrace.py
index
28d8d74
..
e3fca8f
100644
(file)
--- a/
glretrace.py
+++ b/
glretrace.py
@@
-321,6
+321,10
@@
class GlRetracer(Retracer):
print r' if (!__result) {'
print r' retrace::warning(call) << "failed to map buffer\n";'
print r' }'
+ if function.name in self.unmap_function_names:
+ print r' if (!__result) {'
+ print r' retrace::warning(call) << "failed to unmap buffer\n";'
+ print r' }'
if function.name in ('glGetAttribLocation', 'glGetAttribLocationARB'):
print r' GLint __orig_result = call.ret->toSInt();'
print r' if (__result != __orig_result) {'