diff options
Diffstat (limited to 'sample/opengl/sample_opengl.cpp')
| -rw-r--r-- | sample/opengl/sample_opengl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 |