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

————————————————

版权声明:本文「清水迎朝阳」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。