Skip to content

Commit

Permalink
gles: fix and build on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Feb 8, 2024
1 parent f35bc60 commit 03c4dd9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ jobs:
command: test
args: --workspace --all-features

- name: Test GLES
if: matrix.name == 'Linux'
uses: actions-rs/cargo@v1
with:
command: build
env:
RUSTFLAGS: "--cfg gles"
args: --example bunnymark

fmt:
name: Format
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion blade-graphics/src/gles/egl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ impl EglContext {
&self,
desc: &crate::ContextDesc,
) -> (glow::Context, super::Capabilities, super::Limits) {
let gl = glow::Context::from_loader_function(|name| {
let mut gl = glow::Context::from_loader_function(|name| {
self.instance
.get_proc_address(name)
.map_or(ptr::null(), |p| p as *const _)
Expand Down
2 changes: 1 addition & 1 deletion blade-render/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg(not(target_arch = "wasm32"))]
#![cfg(not(any(gles, target_arch = "wasm32")))]
#![allow(irrefutable_let_patterns, clippy::new_without_default)]
#![warn(
trivial_casts,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg(not(target_arch = "wasm32"))]
#![cfg(not(any(gles, target_arch = "wasm32")))]
#![allow(
irrefutable_let_patterns,
clippy::new_without_default,
Expand Down

0 comments on commit 03c4dd9

Please sign in to comment.