ingowald / optix7course

Apache License 2.0
452 stars 80 forks source link

fixed the program crash when minimize the window #2

Closed gzfrozen closed 4 years ago

gzfrozen commented 4 years ago

So, under windows 10, if you try to minimize the GLFW window or use short cut Alt + Tab to navigate between windows, the program will crash due to the operating system seems to return a 0 window size.

This is a simple fix for this frustrating problem.

Beside this pull request, I want to give my thanks to this OptiX tutorial, best I can find on the Internet.

Here is my personal project based on this tutorial. I rewrite the CMake script and make it can both compiled by MSVC 2019 and Clang 10 on windows. Add some features like use 'WSAD' to navigate in the scene; a 360 degree camera (which can't work quite properly now). Try it if anyone is interest. https://github.com/gzfrozen/EM_tracing