版权声明:www.gudianxiaoshuo.com (古典小说网) 今日头条号: 古典古韵古典小说、讨厌编程 https://blog.csdn.net/shuilan0066/article/details/83059369
webGL 的3D绘画功能非常强大,但有些CEF 是关闭此功能的
以下是开启方法:
1)首先不要禁用GPU
//不要禁用GPU
//command_line->AppendSwitch("disable-gpu");
//command_line->AppendSwitch("disable-gpu-compositing");
2)开启WEBGL 功能,忽略显卡黑名单
command_line->AppendSwitchWithValue("enable-webgl", "1"); //开启WEBGL
command_line->AppendSwitchWithValue("ignore-gpu-blacklist", "1"); //忽略显卡黑名单
command_line->AppendSwitchWithValue("allow-file-access-from-files", "1"); //本地调试WEBGL