From 96a57e7489aa301433423b08cce91b1ac15e48d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 1 Mar 2012 15:44:28 +0000 Subject: [PATCH] Warn when failed to unmap buffer too. --- glretrace.py | 4 ++++ 1 file changed, 4 insertions(+) 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) {' -- 2.7.4