### Godot version

4.1.1.stable, 4.2.dev (2282fc5de)

### System information

Arch Linux - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 Ti (nvidia; 535.104.05) - 13th Gen Intel(R) Core(TM) i5-13400F (16 Threads)

### Issue description

When using Compatibility renderer, adjusting the Alpha component of clear color affects 2D editor content.

This does not happen when using Forward+ or Mobile renderer. Does not affect 3D editor and the running game.


https://github.com/godotengine/godot/assets/372476/e398522e-590a-4832-959f-ea8ba8e71c5d



### Steps to reproduce

1. Create a project using Compatibility renderer.
2. Adjust the clear color's alpha component in Project Settings.

### Minimal reproduction project

N/A
if (state.canvas_instance_data_buffers[state.current_data_buffer_index].last_frame_used < RSG::rasterizer->get_frame_number() - 2) {
#ifndef WEB_ENABLED
				
				glClientWaitSync(state.canvas_instance_data_buffers[state.current_data_buffer_index].fence, 0, 100000000); 
#endif
				state.canvas_instance_data_buffers[state.current_data_buffer_index].last_frame_used = RSG::rasterizer->get_frame_number();
				glDeleteSync(state.canvas_instance_data_buffers[state.current_data_buffer_index].fence);
				state.canvas_instance_data_buffers[state.current_data_buffer_index].fence = GLsync();
			} else {
				
				
				_allocate_instance_data_buffer();
			}
		} else {
			
			state.canvas_instance_data_buffers[state.current_data_buffer_index].last_frame_used = RSG::rasterizer->get_frame_number();
			glDeleteSync(state.canvas_instance_data_buffers[state.current_data_buffer_index].fence);
			state.canvas_instance_data_buffers[state.current_data_buffer_index].fence = GLsync();
		}
	}
	
	uint32_t light_count = 0;
	uint32_t directional_light_count = 0;
	{
		Light *l = p_directional_light_list;
		uint32_t index = 0;
		while (l) {
			if (index == data.max_lights_per_render) {
				l->render_index_cache = -1;