gl-terrain-demo
gl-terrain-demo copied to clipboard
OpenGL terrain rendering demo
After running autogen.sh, when I run *make* it produces error. this is the log: ``` Making all in src make[1]: Entering directory '/home/arash/gl-terrain-demo/src' make all-am make[2]: Entering directory '/home/arash/gl-terrain-demo/src' /bin/bash...
https://github.com/itoral/gl-terrain-demo/blob/efbe5e77268f1c111ab6bc52a45a86d8ebad9655/src/ter-terrain.cpp#L209 I think here you can have other out of bound access. You iterate over the whole loop but inside calculate_normals you do a + 1. I found these issues...
https://github.com/itoral/gl-terrain-demo/blob/efbe5e77268f1c111ab6bc52a45a86d8ebad9655/src/ter-terrain.cpp#L106 I am not sure this line (and the one below is correct, you might cause a segmentation fault later on when you call float h = pixels[img_y * image->pitch...