Przeglądaj źródła

Merge pull request #101709 from clayjohn/GLES3-ninepatch-leak

Avoid leaking ninepatch state to other draw commands in GLES backend
Thaddeus Crews 7 miesięcy temu
rodzic
commit
503a20dc88
1 zmienionych plików z 0 dodań i 2 usunięć
  1. 0 2
      drivers/gles3/rasterizer_canvas_gles3.cpp

+ 0 - 2
drivers/gles3/rasterizer_canvas_gles3.cpp

@@ -915,8 +915,6 @@ void RasterizerCanvasGLES3::_record_item_commands(const Item *p_item, RID p_rend
 		state.instance_data_array[r_index].flags = base_flags;
 		state.instance_data_array[r_index].instance_uniforms_ofs = p_item->instance_allocated_shader_uniforms_offset;
 
-		state.instance_data_array[r_index].flags = base_flags | (state.instance_data_array[r_index == 0 ? 0 : r_index - 1].flags & (BATCH_FLAGS_DEFAULT_NORMAL_MAP_USED | BATCH_FLAGS_DEFAULT_SPECULAR_MAP_USED)); // Reset on each command for safety, keep canvastexture binding config.
-
 		Color blend_color = base_color;
 		GLES3::CanvasShaderData::BlendMode blend_mode = p_blend_mode;
 		if (c->type == Item::Command::TYPE_RECT) {