Merge pull request #21325 from karroffel/gles2-texture-flags

[GLES2] fix texture flags not having an effect
This commit is contained in:
Rémi Verschelde 2018-08-23 22:22:33 +02:00 committed by GitHub
commit b2494d3898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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