summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/performance_monitor.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-11-13 17:08:32 -0800
committerKenneth Graunke <kenneth@whitecape.org>2013-11-17 18:51:06 -0800
commita6712f51093f24be08afe14f67e78518b3754266 (patch)
treece259401943a9cd1e1c92cb8a9edb972ae5217cc /src/mesa/main/performance_monitor.c
parent145138fb3c7d84e23382631a4c0e6039b61154b6 (diff)
downloadexternal_mesa3d-a6712f51093f24be08afe14f67e78518b3754266.zip
external_mesa3d-a6712f51093f24be08afe14f67e78518b3754266.tar.gz
external_mesa3d-a6712f51093f24be08afe14f67e78518b3754266.tar.bz2
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 <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/performance_monitor.c')
-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 06c5c2f..5a295b1 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);