Skip to content

Commit

Permalink
use correct texture constant in gl
Browse files Browse the repository at this point in the history
  • Loading branch information
EriKWDev committed Dec 6, 2024
1 parent 083b6e9 commit c7a5f68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blade-graphics/src/gles/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ impl crate::traits::ResourceDevice for super::Context {
} else {
let raw = unsafe { gl.create_texture().unwrap() };

let mut ignoring_sample_count = false;
let target = match desc.dimension {
crate::TextureDimension::D1 => {
if desc.sample_count > 1 {
Expand All @@ -178,7 +177,7 @@ impl crate::traits::ResourceDevice for super::Context {
if desc.sample_count <= 1 {
glow::TEXTURE_2D_ARRAY
} else {
glow::TEXTURE_2D_ARRAY_MULTISAMPLE
glow::TEXTURE_2D_MULTISAMPLE_ARRAY
}
} else {
if desc.sample_count <= 1 {
Expand Down

0 comments on commit c7a5f68

Please sign in to comment.