diff options
| author | Jason Maskell <[email protected]> | 2016-05-25 16:03:19 +0200 |
|---|---|---|
| committer | Jason Maskell <[email protected]> | 2016-05-25 16:03:19 +0200 |
| commit | 77385b9689f3d626ab4582dceea140443e961985 (patch) | |
| tree | 85d3c5014bd1734dae44be34329613b37fb50199 /sample | |
| parent | Excised D3D9 and 10 support from library. (diff) | |
| download | waveworks_archive-77385b9689f3d626ab4582dceea140443e961985.tar.xz waveworks_archive-77385b9689f3d626ab4582dceea140443e961985.zip | |
Added path to opengl media search path. Removed commented out code left over from old DXUT in d3d11 test.
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/opengl/ocean_surface.cpp | bin | 64730 -> 64832 bytes | |||
| -rw-r--r-- | sample/opengl/sample_opengl.cpp | 6 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sample/opengl/ocean_surface.cpp b/sample/opengl/ocean_surface.cpp Binary files differindex 8542e01..72c2fe9 100644 --- a/sample/opengl/ocean_surface.cpp +++ b/sample/opengl/ocean_surface.cpp diff --git a/sample/opengl/sample_opengl.cpp b/sample/opengl/sample_opengl.cpp index 8bcebf6..a6e052c 100644 --- a/sample/opengl/sample_opengl.cpp +++ b/sample/opengl/sample_opengl.cpp @@ -611,8 +611,12 @@ int main(void) if(!GFSDK_WaveWorks_Simulation_DetailLevelIsSupported_GL2((GFSDK_WaveWorks_Simulation_DetailLevel)detail_level)) break; } - if(0 == detail_level) + if (0 == detail_level) + { + fprintf(stdout, "Fatal Error: No supported detail levels. \n"); return false; + } + g_max_detail_level = (GFSDK_WaveWorks_Simulation_DetailLevel)(detail_level - 1); // initializing simulation |