diff options
author | Nicolai Hähnle <[email protected]> | 2016-07-07 09:11:17 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-07-08 10:58:52 +0200 |
commit | 2909e292fc53490d0bc6d433a5ecc1e51e18c34b (patch) | |
tree | a2444d607ee76ab271f7508a6f94ff51fa147289 /src/mesa/state_tracker | |
parent | 5bcfbf91e53e4f66310fc4ab63a7caf931a1e45c (diff) |
gallium: add async flag to pipe_debug_callback
v2: fix typo db -> cb
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_debug.c b/src/mesa/state_tracker/st_debug.c index eaf25490bd6..214e2238148 100644 --- a/src/mesa/state_tracker/st_debug.c +++ b/src/mesa/state_tracker/st_debug.c @@ -172,7 +172,10 @@ st_enable_debug_output(struct st_context *st, boolean enable) return; if (enable) { - struct pipe_debug_callback cb = { st_debug_message, st }; + struct pipe_debug_callback cb; + memset(&cb, 0, sizeof(cb)); + cb.debug_message = st_debug_message; + cb.data = st; pipe->set_debug_callback(pipe, &cb); } else { pipe->set_debug_callback(pipe, NULL); |