19,470
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
opengl超级宝典第五版第12章变换反馈集群例子运行起来黑屏幕, 在网上查了发现时代码有BUG,The chapter 12 flocking example does not work · Issue #19 · flaccidware/oglsuperbible5 · GitHub
这个帖子说是解决了,但是后面附的文件
Ok I figured out why the demo is not running, the flock_position and
flock_velocity attribute locations are not bound to the flock_update_program. I
managed to fix this and it works fine check the attached file.
https://github.com/flaccidware/oglsuperbible5/issues/19 这个是老外解决问题的地址链接