I’ve spent the better 3rd of this week trying to solve a damned rendering bug. This was for just trying to render 3 lines over the screen… This simple seeming task sent me down a rabbit hole of mysteries and bugs.
However I have discovered I didn’t quite understand OpenGL like I thought I had. The positive from all this is, I will never forget to triple check the order of initialisation for rendering primitives to a screen. It’s too late to get into the nitty gritty but the short of it was I didn’t reserve enough memory to upload the vertex data properly, and I wasn’t binding the proper vertex buffers before doing so.
Here’s a screenshot of it finally working! I’m off to bed!