From ae6334d3760b239bbe2aeadb732ea2e3b1abb6bb Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Mon, 17 May 2021 19:08:13 +0200 Subject: [PATCH] gles2: Fix `import_bitmap` resulting in black textures --- src/backend/renderer/gles2/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/renderer/gles2/mod.rs b/src/backend/renderer/gles2/mod.rs index 77c54ed..22e319a 100644 --- a/src/backend/renderer/gles2/mod.rs +++ b/src/backend/renderer/gles2/mod.rs @@ -846,7 +846,7 @@ impl Renderer for Gles2Renderer { let texture = Gles2Texture(Rc::new(Gles2TextureInternal { texture: tex, - texture_kind: 2, + texture_kind: 0, is_external: false, y_inverted: false, width: image.width(),