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

method needed for initializing gl #933

Closed
zmike opened this issue Feb 27, 2017 · 5 comments
Closed

method needed for initializing gl #933

zmike opened this issue Feb 27, 2017 · 5 comments

Comments

@zmike
Copy link

@zmike zmike commented Feb 27, 2017

Servo's CEF interface provides the initialize_compositing() method, which is used by an application to run all the GL initialization code after the application has set up its GL contexts/surfaces.

Ideally this should be able to be tested by building and running https://github.com/zmike/ecef, though I haven't tested the application with GLES3 in a long time so I can also be available for some testing if you run into issues on the application side.

cc @glennw

@glennw
Copy link
Member

@glennw glennw commented Feb 27, 2017

I think what we need to do here is basically add an init() method to Renderer and Device, and ensure that any GL calls are moved from the constructors to here. It's probably a little more complicated than it sounds, but I think that will work well. That will also allow us to make the init() method fallible in case of bad hardware, shader compile errors etc.

@kvark
Copy link
Member

@kvark kvark commented Mar 6, 2017

Is there any point in creating wr::Renderer prior to being able to initialize the GL stuff at all? Can the client (Servo) just call Renderer::new when it's ready?

@zmike
Copy link
Author

@zmike zmike commented May 9, 2017

Has there been any progress with this?

@glennw
Copy link
Member

@glennw glennw commented May 9, 2017

Not yet, no.

@nical
Copy link
Collaborator

@nical nical commented Jul 13, 2018

Servo's CEF isn't a thing anymore I'm told.

@nical nical closed this Jul 13, 2018
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.