From ba11d9516a71ef63770216a7dbee788833ae3e7b Mon Sep 17 00:00:00 2001 From: not-fl3 Date: Tue, 10 Mar 2020 10:34:14 -0600 Subject: [PATCH] Fix android build --- Cargo.toml | 2 +- src/graphics.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 63e8aa1f..6882333a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "miniquad" -version = "0.2.49" +version = "0.2.50" authors = ["not-fl3 "] edition = "2018" license = "MIT/Apache-2.0" diff --git a/src/graphics.rs b/src/graphics.rs index c7751b26..171904a5 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -4,6 +4,9 @@ mod texture; use crate::sapp::*; +// workaround sapp::* also contains None on Android +use std::option::Option::None; + pub use texture::{ FilterMode, RenderTextureFormat, RenderTextureParams, Texture, TextureFormat, TextureParams, };