bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.49k stars 2.87k forks source link

Fix text artifacts in example browser #4626

Open justincredible opened 3 months ago

justincredible commented 3 months ago

Fixes #4493

Thanks to @DaveH355 it was easy to git-bisect where the issue was introduced (31b9be8).

The diff is very short so it was quick to see the misuse of the VAO in glBindBuffer(). The first commit is sufficient for GLX, but testing on Windows showed a need to allocate the buffer space like the position VBO (I guess WGL is more faithful to the spec. in this regard?).

I also renamed the misleading variable to its supposed intended use.