trace: Defer the cast to after the check for enabled trace.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 21:45:57 +0000 (21:45 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 21:47:17 +0000 (21:47 +0000)
commit57ea34214c114539a92eafafebf7e7fcfa9fc286
tree5c21f5fd4eef9c443f080e9532805f21d9498c32
parente866cd7401e70f1e6494c8adf3983e916c7fa9cf
trace: Defer the cast to after the check for enabled trace.

Prevents segfault when trace is disabled.
src/gallium/drivers/trace/tr_context.c