Improve error handling in screen initialization
After the struct screen is initialized, the window, the renderer and the texture are necessarily valid, so there is no need to check in screen_destroy().
Showing
想要评论请 注册 或 登录
从无法访问的项目Fork
After the struct screen is initialized, the window, the renderer and the texture are necessarily valid, so there is no need to check in screen_destroy().