Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL configuration #18685

Closed
antoyo opened this issue Sep 30, 2017 · 6 comments
Closed

OpenGL configuration #18685

antoyo opened this issue Sep 30, 2017 · 6 comments

Comments

@antoyo
Copy link

@antoyo antoyo commented Sep 30, 2017

Hello.
As you can see here, I started to work on integrating servo with gtk-rs.
I had one rendering issue that was caused by the fact that the depth buffer was not enable in the OpenGL configuration.
So, I wonder what is the configuration that is necessary in order to make servo works correctly.
For instance, do I also need to enable the stencil buffer?
Thanks for your help.

@jdm
Copy link
Member

@jdm jdm commented Sep 30, 2017

@glennw Can you answer this question?

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Oct 1, 2017

Same goes for OpenGL ES. What is the minimum version required?

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Oct 1, 2017

@antoyo Servo uses http://github.com/servo/glutin - so I usually look at the initialization code there to guess what is needed. But afaik, we don't have a proper descriptions of the API and extensions needed.

@glennw I'm having issues on Android where I can't get to compile the shaders. Likely because I don't use the right OpenGL ES version (1.4 apparently).

@fabricedesre
Copy link
Contributor

@fabricedesre fabricedesre commented Oct 2, 2017

@paulrouget : that was a while ago, but on Android using:

setEGLContextClientVersion(2);
setEGLConfigChooser(8, 8, 8, 8, 24, 0);

in a GLSurfaceView worked for me.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Oct 3, 2017

@fabricedesre thank you!

@glennw ideally, when starting WebRender, there would be a sanity check that would help embedders know if they setup something wrong.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Oct 3, 2017

Filed an issue for OpenGL ES: servo/webrender#1795

@jdm jdm closed this Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.