Skip to content

GLES: fix context creation on Wayland #2076

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

Merged
merged 2 commits into from
Oct 15, 2021
Merged

GLES: fix context creation on Wayland #2076

merged 2 commits into from
Oct 15, 2021

Conversation

kvark
Copy link
Member

@kvark kvark commented Oct 15, 2021

Connections
Fixes #2008
Fixes #1981
Fixes #1787

Description
When we want to use sRGB, and we know it's supported, we request EGL framebuffer config with ALPHA_SIZE=8.
Also refactors the shaders in EGL a bit.

Testing
The command line I was running is:

RUST_LOG=info WINIT_UNIX_BACKEND=wayland WGPU_BACKEND=gl cargo run --example shadow

@kvark kvark merged commit d9df69e into gfx-rs:master Oct 15, 2021
@kvark kvark deleted the fixes branch October 15, 2021 19:02
@kvark kvark mentioned this pull request Oct 16, 2021
cwfitzgerald pushed a commit that referenced this pull request Oct 25, 2023
Fixes #1745: Support out-of-order module scope declarations in WGSL
Fixes #1044: Forbid local variable shadowing in WGSL
Fixes #2076: [wgsl-in] no error for duplicated type definition
Fixes #2071: Global item does not support 'const'
Fixes #2105: [wgsl-in] Type aliases for a vecN<T> doesn't work when constructing vec from a single argument
Fixes #1775: Referencing a function without a return type yields an unknown identifier error.
Fixes #2089: Error span reported on the declaration of a variable instead of its use
Fixes #1996: [wgsl-in] Confusing error: "expected unsigned/signed integer literal, found '1'"

Separate parsing from lowering by generating an AST, which desugars as
much as possible down to something like Naga IR. The AST is then used
to resolve identifiers while lowering to Naga IR.

Co-authored-by: Teodor Tanasoaia <[email protected]>
Co-authored-by: Jim Blandy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant