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

Type declaration for egl NativeGLContextHandle doesn't match its use #135

Open
asajeffrey opened this issue May 10, 2019 · 0 comments
Open

Comments

@asajeffrey
Copy link
Member

In https://github.com/servo/rust-offscreen-rendering-context/blob/69505baa96b8e66a1a6b04ca43b6b8c755ba4ed3/src/platform/with_egl/native_gl_context.rs#L137 there is:

    NativeGLContextHandle(native_context, native_display)

but the type declaration at https://github.com/servo/rust-offscreen-rendering-context/blob/69505baa96b8e66a1a6b04ca43b6b8c755ba4ed3/src/platform/with_egl/native_gl_context.rs#L24 is:

    pub struct NativeGLContextHandle(pub EGLDisplay, pub EGLSurface);

This works because the uses are all consistent, and they're just typedefs for void*.

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

No branches or pull requests

1 participant