cpp-game-engine-book
cpp-game-engine-book copied to clipboard
/samples/multithread_render/engine_render_queue/ 的例子用Clion运行,叉掉窗口后,实例仍在运行,没有退出
从骨骼蒙皮动画那里开始不能自己退出。 集成lua那里退出时,会先创建出一个verFault进程,但是那会儿还能自己退出。
是这个WerFualt.
目前是发现两个地方有问题,这里是一个,在LuaBinding里CallFunction写死了main。
还有一个是多线程时没有正确关闭glfw
在骨骼蒙皮动画加权重那小节( samples/skinned_mesh_renderer/load_weight_file/ ),就有问题了。还没到多线程那里。我是中间有几小节没跑examples,直接跳到多线程那小节,刚好发现了问题。
┗|`O′|┛ 嗷~~ 这个是析构函数里用错了delete,在shadowmap这里才改好的。
[[](https://github.com/ThisisGame/cpp-game-engine-book/commit/67d00cb82761cbdab3e3bcb5c727bfd1d68adc0e)](https://github.com/ThisisGame/cpp-game-engine-book/commit/67d00cb82761cbdab3e3bcb5c727bfd1d68adc0e)
https://github.com/ThisisGame/cpp-game-engine-book/commit/83a1a77b4ea78624353f6eef162147f3dbe5b252
大概是这两次提交
是因为malloc对应free,new对应delete吗?大学时好像学过,毕业后一直没用c/c++工作过。不是很确定是不是这样。
试过了,WerFualt.exe的出现,是因为日志组件没关