Relative Content

Tag Archive for c++classopenglgraphicsmember

Member variable being set to wrong value for some reason

I’m writing an OpenGL program and have been implementing the model loading functionality via assimp but have been having a hard time making it work.
I’ve tracked the issue down to one of the member variables of my mesh class not updating correctly for some reason.
I’ve tried everything I can think of but can’t seem to figure out why it’s not updating correctly.
Before the gpu_gen_mesh method call, the values of all the buffer handles are 0, which is to be expected. Afterwards, the values are all 1 for some reason. This is despite the values of the intermediate variables I am using being set to what seems like the correct values.