# define _COREGL_TRACE_API_OUTPUT(force_output) \
trace_output(force_output);
#else
-# define _COREGL_TRACE_API_BEGIN(api, trace_total_time)
-# define _COREGL_TRACE_API_END(api, trace_total_time)
+# define _COREGL_TRACE_API_BEGIN(api, hint, trace_total_time) NULL;
+# define _COREGL_TRACE_API_END(api, hint, trace_total_time)
# define _COREGL_TRACE_API_OUTPUT(force_output)
#endif
Trace_Data *ftd = NULL;
struct timeval t = TIMEVAL_INIT;
- ftd = (Trace_Data *)hint;
-
- AST(gettimeofday(&t, NULL) == 0);
-
if (trace_api_flag == 1)
{
GLThreadState *tstate = NULL;
struct timeval elapsed_time = TIMEVAL_INIT;
+ ftd = (Trace_Data *)hint;
+
+ AST(gettimeofday(&t, NULL) == 0);
+
if (ftd == NULL)
{
tstate = get_current_thread_state();