gallium/hud: fix the windows build by disabling file dumping
authorMarek Olšák <marek.olsak@amd.com>
Mon, 2 Jan 2017 22:16:48 +0000 (23:16 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 2 Jan 2017 22:18:28 +0000 (23:18 +0100)
src/gallium/auxiliary/hud/hud_context.c

index 779c11693c807a6ec5ee14ef3ae1d46007bec9f8..f2f503dab8f2ff86281b4fbba4e03f315d408d92 100644 (file)
@@ -868,6 +868,7 @@ hud_graph_destroy(struct hud_graph *graph)
 void
 hud_graph_set_dump_file(struct hud_graph *gr)
 {
+#ifndef PIPE_OS_WINDOWS
    const char *hud_dump_dir = getenv("GALLIUM_HUD_DUMP_DIR");
    char *dump_file;
 
@@ -880,6 +881,7 @@ hud_graph_set_dump_file(struct hud_graph *gr)
          free(dump_file);
       }
    }
+#endif
 }
 
 /**