From b820d0f60150385778f36433cb93444ed13866d1 Mon Sep 17 00:00:00 2001 From: Fedor Logachev Date: Tue, 20 Feb 2024 23:02:03 -0600 Subject: [PATCH] Version bump --- Cargo.toml | 2 +- src/quad_gl.rs | 4 ++-- src/texture.rs | 2 ++ tiled/Cargo.toml | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2f150ccd..c8d8c282 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ opt-level = 3 all-features = true [dependencies] -miniquad = { version = "=0.4.0-alpha.10", features = ["log-impl"] } +miniquad = { version = "=0.4.0", features = ["log-impl"] } quad-rand = "0.2.1" glam = {version = "0.21", features = ["scalar-math"] } image = { version = "0.24", default-features = false, features = ["png", "tga"] } diff --git a/src/quad_gl.rs b/src/quad_gl.rs index d5af9be3..5e4298a2 100644 --- a/src/quad_gl.rs +++ b/src/quad_gl.rs @@ -221,7 +221,7 @@ impl MagicSnapshotter { ) .unwrap_or_else(|e| panic!("Failed to load shader: {}", e)); - let pipeline = ctx.new_pipeline_with_params( + let pipeline = ctx.new_pipeline( &[BufferLayout::default()], &[ VertexAttribute::new("position", VertexFormat::Float2), @@ -516,7 +516,7 @@ impl PipelinesStorage { mut uniforms: Vec<(String, UniformType)>, textures: Vec, ) -> GlPipeline { - let pipeline = ctx.new_pipeline_with_params( + let pipeline = ctx.new_pipeline( &[BufferLayout::default()], &[ VertexAttribute::new("position", VertexFormat::Float3), diff --git a/src/texture.rs b/src/texture.rs index 8a71b955..c1f48a3a 100644 --- a/src/texture.rs +++ b/src/texture.rs @@ -682,7 +682,9 @@ impl Texture2D { let internal_format = match params.format { TextureFormat::RGB8 => miniquad::gl::GL_RGB, TextureFormat::RGBA8 => miniquad::gl::GL_RGBA, + TextureFormat::RGBA16F => miniquad::gl::GL_RGBA, TextureFormat::Depth => miniquad::gl::GL_DEPTH_COMPONENT, + TextureFormat::Depth32 => miniquad::gl::GL_DEPTH_COMPONENT, #[cfg(target_arch = "wasm32")] TextureFormat::Alpha => miniquad::gl::GL_ALPHA, #[cfg(not(target_arch = "wasm32"))] diff --git a/tiled/Cargo.toml b/tiled/Cargo.toml index 35e3115e..6b7ce17e 100644 --- a/tiled/Cargo.toml +++ b/tiled/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "macroquad-tiled" -version = "0.2.0" +version = "0.2.1" authors = ["Fedor Logachev "] edition = "2018" license = "MIT/Apache-2.0"