summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Herzog <therzog@mail.de>2018-08-23 18:25:55 +0200
committerThomas Herzog <therzog@mail.de>2018-08-23 18:25:55 +0200
commit8884b3daadf3b6803fa131c7e44445df01070c8e (patch)
treefa1536cd9eeeec64da2b93f8ee05cd6ca95cb135
parent398c1c1c0c5c0380f39403b384e4d798ccf7fb75 (diff)
[GLES2] fix texture flags not having an effect
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp2
1 files changed, 2 insertions, 0 deletions
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);