mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Fix CI
This commit is contained in:
parent
49fa26cb98
commit
eb5250ae75
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@ -154,7 +154,7 @@ jobs:
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install mdbook
|
||||
run: |
|
||||
cargo install mdbook --no-default-features --features output --vers "^0.1.0"
|
||||
cargo install --force mdbook --no-default-features --features output --vers "^0.1.0"
|
||||
- name: Build
|
||||
run: mdbook build
|
||||
- name: Deploy to maxammann.org
|
||||
|
||||
@ -4,11 +4,12 @@ pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8
|
||||
// WebGL
|
||||
#[cfg(all(target_arch = "wasm32", feature = "web-webgl"))]
|
||||
pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Rgba8UnormSrgb;
|
||||
// Vulkan/Metal/OpenGL
|
||||
// Vulkan/OpenGL
|
||||
#[cfg(target_os = "linux")]
|
||||
pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb;
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
// macOS and iOS (Metal)
|
||||
#[cfg(all(target_arch = "aarch64", not(target_os = "android")))]
|
||||
pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user