dilevin / computer-graphics-meshes

Computer Graphics Assignment about Meshes
1 stars 6 forks source link

Sphere only displaying in release mode #13

Closed jeremyxu1998 closed 5 years ago

jeremyxu1998 commented 5 years ago

As title, the sphere will not display in debug mode (empty window with purple background), but shows perfectly in release mode. What could be the possible reason? Thanks!

rin-23 commented 5 years ago

Hard to say but we will be compiling your code in Release mode so if it works there you should be good.

WChrisK commented 5 years ago

I'd do the following:

If you are hitting undefined behavior, you are risking a zero on this assignment because what might work on your machine (or even on certain runs on your machine) may segfault or crash (or worse) on any other computer. I am not saying you are doing UB, but when debug and release differ it's the first thing I'd investigate.