JCEF WebGL not working

Having problems with building or using the JCEF Java binding? Ask your questions here.

JCEF WebGL not working

Postby nitinmukesh » Thu Sep 17, 2015 2:25 pm

I am working on creating single Java application for Windows/Mac/Linux which will be used to play html5 games.

I have created sample program which loads webpage within JCEF (jcef_binary_3.1750.1738.91_windows64).

I am now testing WebGL support using

Code: Select all
new JCEF("https://get.webgl.org/", OS.isLinux(), false);


When the web page is loaded it comes up with following message

Hmm. While your browser seems to support WebGL, it is disabled or
unavailable. If possible, please ensure that you are running the
latest drivers for your video card.


I tried adding D3DCompiler_43.dll and D3DX9_43.dll in the following folder
bin\lib\win64

did not solved the issue.

Also tried adding following switches

Code: Select all
String[] _switch = {"--disable-web-security", "--enable-webgl", "--ignore-gpu-blacklist"};
cefApp_ = CefApp.getInstance(_switch);


Please help me fix this issue.
nitinmukesh
Newbie
 
Posts: 2
Joined: Thu Sep 17, 2015 2:23 pm

Re: JCEF WebGL not working

Postby magreenblatt » Fri Sep 18, 2015 4:14 am

You will need to build a newer JCEF version from source code as described here: https://bitbucket.org/chromiumembedded/ ... uilding.md
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF WebGL not working

Postby nitinmukesh » Mon Sep 21, 2015 11:14 pm

Many thanks for your response magreenblatt.

Do I need to build the C++ libraries or java libraries. Sorry I am a web developer and very much new to all this.
Do we not have precompiled libraries available which can be used.
nitinmukesh
Newbie
 
Posts: 2
Joined: Thu Sep 17, 2015 2:23 pm

Re: JCEF WebGL not working

Postby magreenblatt » Tue Sep 22, 2015 2:39 am

nitinmukesh wrote:Many thanks for your response magreenblatt.

Do I need to build the C++ libraries or java libraries. Sorry I am a web developer and very much new to all this.
Do we not have precompiled libraries available which can be used.

There are no precompiled libraries available for the current version of JCEF. You will need to build them yourself (both C++ and Java).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 147 guests