summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-11-13 17:08:32 -0800
committerKenneth Graunke <[email protected]>2013-11-17 18:51:06 -0800
commita6712f51093f24be08afe14f67e78518b3754266 (patch)
treece259401943a9cd1e1c92cb8a9edb972ae5217cc
parent145138fb3c7d84e23382631a4c0e6039b61154b6 (diff)
mesa: Also initialize gl_performance_monitor::Active.
The i965 implementation uses calloc, so I missed this. It's best to simply initialize it to avoid requiring a zeroing allocator, though. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/mesa/main/performance_monitor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c
index 06c5c2f133b..5a295b170fd 100644
--- a/src/mesa/main/performance_monitor.c
+++ b/src/mesa/main/performance_monitor.c
@@ -64,6 +64,8 @@ new_performance_monitor(struct gl_context *ctx, GLuint index)
m->Name = index;
+ m->Active = false;
+
m->ActiveGroups =
rzalloc_array(NULL, unsigned, ctx->PerfMonitor.NumGroups);