unity-bug:Your platform doesn‘t support linear rendering with OpenGL ES, switch to OpenGL core graph

出现bug,Unity界面变黑,运行游戏无限报错,bug图如下:
unity-bug:Your platform doesn‘t support linear rendering with OpenGL ES, switch to OpenGL core graph
bug翻译:Your platform doesn’t support linear rendering with OpenGL ES, switch to OpenGL core graphics API
unity-bug:Your platform doesn‘t support linear rendering with OpenGL ES, switch to OpenGL core graph
顾名思义,提示的就是电脑或者OpenGL不支持的问题,相关参考资料
Unity手册相关解释
图形处理 OpenGL硬件加速

划重点
OpenGL32.dll是微软的OpenGL 1.1纯软件实现,我们的程序都要动态链接到这个dll。如果安装3D芯片厂商的驱动程序,会将一个不同名字的dll放到Windows系统目录下,比如 在Windows 2000下安装nVIDIA GeForce2 MX的驱动程序,会在系统目录下放一个nvoglnt.dll(这就是nVIDIA的OpenGL驱动),并在注册表中登记nvoglnt.dll,让 Windows知道硬件加速OpenGL驱动的名字,以后运行OpenGL程序,OpenGL32.dll就会把OpenGL调用直接转到 nvoglnt.dll。

性能低下的 OpenGL 驱动的共同症状

以下症状表明你的OpenGL驱动不能100%兼容OpenGL硬件加速。
开启表面接受投影功能时,有些模型出现条纹或变黑。
这通常是由于OpenGL软件加速驱动的模板缓存的一个bug。
选择表面时,却选中了反向表面。
在16位色模式下,坐标轴消失,所有的线都可见且变成虚线,出现奇怪的贴图颜色
图像翻转

Windows平台上,一个OpenGL程序是否使用硬件加速由三个因素决定:

  1. 是否有一块3D加速卡
  2. 是否安装了显卡厂商提供的最新的驱动程序,Windows自带的显卡驱动程序并不会提供OpenGL硬件加速能力
  3. 指定的像素格式是否被显卡硬件所支持

解决方案:若本机没有安装OpenGL,说明平台不支持,那么在Unity里设置:Edit->Project Setting->Player->Other Settings ->Color Space 选择Gamma
unity-bug:Your platform doesn‘t support linear rendering with OpenGL ES, switch to OpenGL core graph
这样Unity界面就可以恢复正常,Unity Documentation: Linear or gamma workflow

这个我本机OpenGL(无bug),进入目录C:\Windows\WinSxS 查找opengl:
unity-bug:Your platform doesn‘t support linear rendering with OpenGL ES, switch to OpenGL core graph

查看本机显卡驱动:
cmd : C:\Program Files\NVIDIA Corporation\NVSMI + nvidia-smi

unity-bug:Your platform doesn‘t support linear rendering with OpenGL ES, switch to OpenGL core graph