softpipe: fix an obvious copy-paste error in get_query_result
authorMarek Olšák <maraeo@gmail.com>
Tue, 16 Aug 2011 17:06:55 +0000 (19:06 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 16 Aug 2011 17:56:29 +0000 (19:56 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/softpipe/sp_query.c

index 4ae69c1c2bdaf5cbdf147f37394860e4fd4b1b3c..88f42572f1939bafe70bbbbdabb632e970847da2 100644 (file)
@@ -157,7 +157,7 @@ softpipe_get_query_result(struct pipe_context *pipe,
       /*os_get_time is in microseconds*/
       td.frequency = 1000000;
       td.disjoint = FALSE;
-      memcpy(vresult, &sq->so,
+      memcpy(vresult, &td,
              sizeof(struct pipe_query_data_timestamp_disjoint));
    }
       break;