错误如下:
(libcocos2d.dll) 处有未经处理的异常:
0xC0000094: Integer division by zero
解决方法:
director->setOpenGLView(eglView);
eglView->setDesignResolutionSize(540, 960, ResolutionPolicy::NO_BORDER);
设置开发尺寸的时候.一定要放在setGLVIEW后面.
否则就会出错
Cocos2d-x:glview 设计分辨率设置错误及解决方案
在使用Cocos2d-x时遇到一个错误:(libcocos2d.dll) 处有未经处理的异常: 0xC0000094: Integer division by zero,问题出在调用`setDesignResolutionSize`上。为解决这个问题,需要将设置设计分辨率的代码放在`setOpenGLView`之后,例如:`director->setOpenGLView(eglView); eglView->setDesignResolutionSize(540, 960, ResolutionPolicy::NO_BORDER);`这样做可以避免出现错误并确保适配正确。"
105140638,8175366,VMware安装教程:图文详解CentOS7.4系统配置与联网,"['虚拟机', 'Linux', 'CentOS', '网络配置']
错误如下:
(libcocos2d.dll) 处有未经处理的异常:
0xC0000094: Integer division by zero
解决方法:
director->setOpenGLView(eglView);
eglView->setDesignResolutionSize(540, 960, ResolutionPolicy::NO_BORDER);
设置开发尺寸的时候.一定要放在setGLVIEW后面.
否则就会出错

被折叠的 条评论
为什么被折叠?