In C3D_RENDER_OGL_LEGACY::setupMaterial(), the struct m_materials (which is made up of floats and glm::vec3f's) is initialised with a memset to 0. This is unsafe, as floating point value representations in C++ are implementation- defined (so 0 in memory is not 0-valued for sure). Use empty-brace aggregate-initialisation, which does the right thing. |
||
---|---|---|
.. | ||
c3d_render_createscene_ogl_legacy.cpp | ||
c3d_render_ogl_legacy.cpp | ||
c3d_render_ogl_legacy.h | ||
c_ogl_3dmodel.cpp | ||
c_ogl_3dmodel.h | ||
clayer_triangles.cpp | ||
clayer_triangles.h | ||
ogl_legacy_utils.cpp | ||
ogl_legacy_utils.h |