mesa: refactor _mesa_PushDebugGroup
authorChia-I Wu <olvaffe@gmail.com>
Tue, 22 Apr 2014 04:51:16 +0000 (12:51 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Sun, 27 Apr 2014 02:06:20 +0000 (10:06 +0800)
commitf1d00dce439eb103f1be9e83623a5cdd11f61067
treecd5797653010591902f06407330e60003c112be0
parentde0e0ae4b69b5388f64ed926fb4e835b2b1782cc
mesa: refactor _mesa_PushDebugGroup

Move group copying to debug_push_group.  Save the group message before pushing
instead of after, since we will need it after popping.  No functional change
otherwise.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/errors.c