From: José Fonseca Date: Thu, 1 Mar 2012 15:44:28 +0000 (+0000) Subject: Warn when failed to unmap buffer too. X-Git-Tag: 2.0_alpha^2~269 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96a57e7489aa301433423b08cce91b1ac15e48d5;p=tools%2Fapitrace.git Warn when failed to unmap buffer too. --- diff --git a/glretrace.py b/glretrace.py index 28d8d74..e3fca8f 100644 --- 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) {'