3d model is glitchy when in release mode

  3d, 3d-model, assimp, c++, opengl

I am rendering a 3d model with OpenGL,
and when I render in debug mode it looks fine,
but when I switch to release mode the vertices mess up.

here is my code

model class: https://pastebin.pl/view/0ca03509

mesh class: https://pastebin.pl/view/8508395c

main cpp file: https://pastebin.pl/view/972d0b9e

Debug mode screenshot:
https://i.imgur.com/QiCp0Eu.png

Release mode screenshot:
https://i.imgur.com/0UcnKvR.png

please help

Source: Windows Questions C++

LEAVE A COMMENT