From a6712f51093f24be08afe14f67e78518b3754266 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 13 Nov 2013 17:08:32 -0800 Subject: 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 Reviewed-by: Ian Romanick --- src/mesa/main/performance_monitor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa') 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); -- cgit v1.2.3