Posts: 409 from 2003/4/11
The OpenGL VBO example you tested is the one. Weird: In my Linux box works. Whatever.
I found a silly bug in the example code which is why it didn't work for me on Linux. I fixed the bug, and indeed it still didn't render the pyramid for me on MorphOS. Found the bug in MorphOS and fixed that too, so now the (fixed) example works on MorphOS too.
On line 468 and 469 of main.cpp
, it allocates space for just 3 vertex buffers, but on lines 491 through 493 of main.cpp
it uses the 4th index of the array that only holds 3 elements, thus reading past the end of the allocated memory. If it worked for you on Linux, it was by luck.
I rarely log in to MorphZone which means that I often miss private messages sent on here. If you wish to contact me, please email me at [username]@asgaard.morphos-team.net, where [username] is my username here on MorphZone.