summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Janes <mark.a.janes@intel.com>2017-08-23 12:54:44 -0700
committerMark Janes <mark.a.janes@intel.com>2017-08-28 16:33:55 -0700
commit303bb2130ce9078a18e9e53a922cbdd8268629da (patch)
tree645c462ba89a6e146e8d4c66006ebeebe9401bc0
parentbba8f6475c1e5bda9555cb4bd99e4985f2bbdf62 (diff)
Retrace: Add support for programs using glXMakeContextCurrent
Metrics retrace crashed on Google Earth traces because this call was not tracked.
-rw-r--r--retrace/daemon/glframe_retrace_render.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/retrace/daemon/glframe_retrace_render.cpp b/retrace/daemon/glframe_retrace_render.cpp
index 13bbdc19..29915e91 100644
--- a/retrace/daemon/glframe_retrace_render.cpp
+++ b/retrace/daemon/glframe_retrace_render.cpp
@@ -72,6 +72,9 @@ bool
RetraceRender::changesContext(const trace::Call &call) {
if (strncmp(call.name(), "glXMakeCurrent", strlen("glXMakeCurrent")) == 0)
return true;
+ if (strncmp(call.name(), "glXMakeContextCurrent",
+ strlen("glXMakeContextCurrent")) == 0)
+ return true;
return false;
}