From 8884b3daadf3b6803fa131c7e44445df01070c8e Mon Sep 17 00:00:00 2001 From: Thomas Herzog Date: Thu, 23 Aug 2018 18:25:55 +0200 Subject: [GLES2] fix texture flags not having an effect --- drivers/gles2/rasterizer_storage_gles2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gles2') diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index b1df65493f..262add1cc3 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -640,6 +640,8 @@ void RasterizerStorageGLES2::texture_set_flags(RID p_texture, uint32_t p_flags) bool had_mipmaps = texture->flags & VS::TEXTURE_FLAG_MIPMAPS; + texture->flags = p_flags; + glActiveTexture(GL_TEXTURE0); glBindTexture(texture->target, texture->tex_id); -- cgit v1.2.3