summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-23 22:22:33 +0200
committerGitHub <noreply@github.com>2018-08-23 22:22:33 +0200
commitb2494d38982418ce2cee2035cf07425abf02e595 (patch)
tree125c87ec7681567824c7b5d0021f73ec9d38a89c
parentab3716bd46d251dfb1c6664794e3b518c0d2218c (diff)
parent8884b3daadf3b6803fa131c7e44445df01070c8e (diff)
Merge pull request #21325 from karroffel/gles2-texture-flags
[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);