浏览代码

[GLES2] fix texture flags not having an effect

Thomas Herzog 7 年之前
父节点
当前提交
8884b3daad
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/gles2/rasterizer_storage_gles2.cpp

+ 2 - 0
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;
 	bool had_mipmaps = texture->flags & VS::TEXTURE_FLAG_MIPMAPS;
 
 
+	texture->flags = p_flags;
+
 	glActiveTexture(GL_TEXTURE0);
 	glActiveTexture(GL_TEXTURE0);
 	glBindTexture(texture->target, texture->tex_id);
 	glBindTexture(texture->target, texture->tex_id);