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

let ios and Mac implementations return the EGLConfigId #11

Open
escamoteur opened this issue Jul 16, 2021 · 0 comments
Open

let ios and Mac implementations return the EGLConfigId #11

escamoteur opened this issue Jul 16, 2021 · 0 comments

Comments

@escamoteur
Copy link
Contributor

Windows and Android return the EGL-Config that they have chosen via an config-id that can be retrieved like:

      EGLint configId;
      eglGetConfigAttrib(display,config,EGL_CONFIG_ID,&configId);

and is returned as result in

      auto response = flutter::EncodableValue(flutter::EncodableMap{
          {flutter::EncodableValue("context"),
           flutter::EncodableValue((int64_t) context)},
          {flutter::EncodableValue("dummySurface"),
           flutter::EncodableValue((int64_t) dummySurfaceForDartSide)},
          {flutter::EncodableValue("eglConfigId"),
           flutter::EncodableValue((int64_t) configId)}
          });
      result->Success(response);

This has to be added to the iOS and MacOs implemtations. When this is done we can remove the default config from the dart side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant