summaryrefslogtreecommitdiff
path: root/test/d3d11/ocean_cufft_app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/d3d11/ocean_cufft_app.cpp')
-rw-r--r--test/d3d11/ocean_cufft_app.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/d3d11/ocean_cufft_app.cpp b/test/d3d11/ocean_cufft_app.cpp
index af79315..bee9978 100644
--- a/test/d3d11/ocean_cufft_app.cpp
+++ b/test/d3d11/ocean_cufft_app.cpp
@@ -46,6 +46,9 @@
#include <tchar.h>
#include "DDSTextureLoader.h"
+#include <locale>
+#include <codecvt>
+#include <xlocbuf>
//#define DEBUG_VS // Uncomment this line to debug vertex shaders
//#define DEBUG_PS // Uncomment this line to debug pixel shaders
@@ -92,7 +95,7 @@ GFSDK_WaveWorks_Simulation_Stats g_ocean_stats_simulation;
GFSDK_WaveWorks_Simulation_Stats g_ocean_stats_simulation_filtered;
int g_max_detail_level;
-bool g_RenderWireframe = false;
+bool g_RenderWireframe = true;
bool g_RenderWater = true;
bool g_SimulateWater = true;
bool g_ForceKick = false;
@@ -254,6 +257,10 @@ INT WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR cmdline, int )
g_pTestParams = new TestParams(cmdline);
+ std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
+
+ DXUTSetMediaSearchPath(converter.from_bytes(g_pTestParams->MediaDirectory).c_str());
+
// Set the callback functions. These functions allow DXUT to notify
// the application about device changes, user input, and windows messages. The
// callbacks are optional so you need only set callbacks for events you're interested