[GLES2] fix texture flags not having an effect

This commit is contained in:
Thomas Herzog 2018-08-23 18:25:55 +02:00
parent 398c1c1c0c
commit 8884b3daad

View file

@ -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);